2
0
afeiszli 4 жил өмнө
parent
commit
a8ef86bca4

+ 4 - 8
servercfg/serverconf.go

@@ -110,14 +110,10 @@ func GetGRPCHost() string {
 }
 func GetGRPCPort() string {
         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
 }