Browse Source

add port to token

afeiszli 4 years ago
parent
commit
a8ef86bca4
1 changed files with 4 additions and 8 deletions
  1. 4 8
      servercfg/serverconf.go

+ 4 - 8
servercfg/serverconf.go

@@ -110,14 +110,10 @@ func GetGRPCHost() string {
 }
 }
 func GetGRPCPort() string {
 func GetGRPCPort() string {
         grpcport := "50051"
         grpcport := "50051"
-        if IsGRPCWireGuard() {
-                grpcport = GetGRPCWGPort()
-        } else {
-	        if os.Getenv("GRPC_PORT") != "" {
-	                grpcport = os.Getenv("GRPC_PORT")
-	        } else if  config.Config.Server.GRPCPort != "" {
-	                grpcport = config.Config.Server.GRPCPort
-	        }
+	if os.Getenv("GRPC_PORT") != "" {
+	        grpcport = os.Getenv("GRPC_PORT")
+	} else if  config.Config.Server.GRPCPort != "" {
+	        grpcport = config.Config.Server.GRPCPort
 	}
 	}
         return grpcport
         return grpcport
 }
 }