|
@@ -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
|
|
|
}
|