From 2fef3cbf3fdaa22ae42e367dde39a50525e49757 Mon Sep 17 00:00:00 2001 From: Youngjin Jo Date: Thu, 16 Jan 2025 13:51:18 +0900 Subject: [PATCH] chore: change proxy: false when static mode Signed-off-by: Youngjin Jo --- cmd/other/setting.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cmd/other/setting.go b/cmd/other/setting.go index dd6e374..5b07bbc 100644 --- a/cmd/other/setting.go +++ b/cmd/other/setting.go @@ -102,12 +102,6 @@ This is useful for development or when connecting directly to specific service e v.SetConfigFile(mainSettingPath) v.SetConfigType("yaml") - //envName, err := parseEnvNameFromURL(endpoint) - //if err != nil { - // pterm.Error.Printf("Failed to parse environment name: %v\n", err) - // return - //} - // Check if environment already exists if err := v.ReadInConfig(); err == nil { environments := v.GetStringMap("environments") @@ -1405,6 +1399,8 @@ func updateSetting(envName, endpoint, envSuffix string, internal bool) { } else { v.Set(proxyKey, isProxy) } + } else if strings.HasPrefix(endpoint, "grpc://") { + v.Set(proxyKey, false) } else { v.Set(proxyKey, true) }