Skip to content
Snippets Groups Projects
Commit 75f2b03c authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

small QOL changes

parent 702174e5
Branches
Tags
No related merge requests found
...@@ -269,12 +269,13 @@ func (cl *Client) Register(preCan bool, registrationCode, nick, email string) (* ...@@ -269,12 +269,13 @@ func (cl *Client) Register(preCan bool, registrationCode, nick, email string) (*
receptionHash := sha256.New() receptionHash := sha256.New()
// Loop over all Servers // Loop over all Servers
globals.Log.INFO.Println("Register: Requesting nonces")
for i := range cl.ndf.Gateways { for i := range cl.ndf.Gateways {
gwID := id.NewNodeFromBytes(cl.ndf.Nodes[i].ID).NewGateway() gwID := id.NewNodeFromBytes(cl.ndf.Nodes[i].ID).NewGateway()
// Request nonce message from gateway // 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) nonce, dhPub, err := cl.requestNonce(salt, regHash, publicKeyDH, publicKeyRSA, privateKeyRSA, gwID)
if err != nil { if err != nil {
globals.Log.ERROR.Printf("Register: Failed requesting nonce from gateway: %+v", err) globals.Log.ERROR.Printf("Register: Failed requesting nonce from gateway: %+v", err)
......
...@@ -45,7 +45,6 @@ var rateLimiting uint32 ...@@ -45,7 +45,6 @@ var rateLimiting uint32
var showVer bool var showVer bool
var gwCertPath string var gwCertPath string
var registrationCertPath string var registrationCertPath string
var registrationAddr string
var registrationCode string var registrationCode string
var userEmail string var userEmail string
var userNick string var userNick string
...@@ -523,11 +522,6 @@ func init() { ...@@ -523,11 +522,6 @@ func init() {
"", "",
"Path to the certificate file for connecting to registration server"+ "Path to the certificate file for connecting to registration server"+
" using TLS") " using TLS")
rootCmd.PersistentFlags().StringVarP(&registrationAddr,
"registrationaddr", "a",
"",
"Address:Port for connecting to registration server"+
" using TLS")
rootCmd.PersistentFlags().StringVarP(&registrationCode, rootCmd.PersistentFlags().StringVarP(&registrationCode,
"regcode", "e", "regcode", "e",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment