Parcourir la source

auto update script executed

Toby Chui il y a 1 an
Parent
commit
c65f2320b1
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      mod/ganserv/authkey.go

+ 2 - 0
mod/ganserv/authkey.go

@@ -48,6 +48,8 @@ func TryLoadorAskUserForAuthkey() string {
 		}
 	}
 
+	authKey = strings.TrimSpace(authKey)
+
 	if authKey == "" {
 		//Ask user for input
 		reader := bufio.NewReader(os.Stdin)