Explorar o código

correct users limits env var

Abhishek Kondur %!s(int64=2) %!d(string=hai) anos
pai
achega
bba4db56fe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      servercfg/serverconf.go

+ 1 - 1
servercfg/serverconf.go

@@ -680,7 +680,7 @@ func GetStunPort() int {
 func GetUserLimit() int {
 	var userslimit int
 	if os.Getenv("USERS_LIMIT") != "" {
-		userslimit, _ = strconv.Atoi(os.Getenv("USER_LIMIT"))
+		userslimit, _ = strconv.Atoi(os.Getenv("USERS_LIMIT"))
 	} else {
 		userslimit = config.Config.Server.UsersLimit
 	}