Forráskód Böngészése

auto update script executed

Toby Chui 1 éve
szülő
commit
c65f2320b1
1 módosított fájl, 2 hozzáadás és 0 törlés
  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)