diff --git a/api/client.go b/api/client.go index 1eeae0c5e40ad9cc3cfbb688415c58a9b38f246a..f97c1a027786dfdd9083742c1869c54e0106a207 100644 --- a/api/client.go +++ b/api/client.go @@ -269,12 +269,13 @@ func (cl *Client) Register(preCan bool, registrationCode, nick, email string) (* receptionHash := sha256.New() // Loop over all Servers + globals.Log.INFO.Println("Register: Requesting nonces") for i := range cl.ndf.Gateways { gwID := id.NewNodeFromBytes(cl.ndf.Nodes[i].ID).NewGateway() // Request nonce message from gateway - globals.Log.INFO.Println("Register: Requesting nonce from gateway") + globals.Log.INFO.Printf("Register: Requesting nonce from gateway %v/%v", i, len(cl.ndf.Gateways)) nonce, dhPub, err := cl.requestNonce(salt, regHash, publicKeyDH, publicKeyRSA, privateKeyRSA, gwID) if err != nil { globals.Log.ERROR.Printf("Register: Failed requesting nonce from gateway: %+v", err) diff --git a/cmd/root.go b/cmd/root.go index fcc5b40d0609910681411a9ca4df7e633b980ca5..325bb81025b8c9141235df1736c7c02dabaa6389 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -45,7 +45,6 @@ var rateLimiting uint32 var showVer bool var gwCertPath string var registrationCertPath string -var registrationAddr string var registrationCode string var userEmail string var userNick string @@ -523,11 +522,6 @@ func init() { "", "Path to the certificate file for connecting to registration server"+ " using TLS") - rootCmd.PersistentFlags().StringVarP(®istrationAddr, - "registrationaddr", "a", - "", - "Address:Port for connecting to registration server"+ - " using TLS") rootCmd.PersistentFlags().StringVarP(®istrationCode, "regcode", "e",