Ver Fonte

auto update script executed

Toby Chui há 1 ano atrás
pai
commit
c65f2320b1
1 ficheiros alterados com 2 adições e 0 exclusões
  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)