hotfix: grpc connect to daemon process ignore http_proxy and https_proxy (#633)

This commit is contained in:
naison
2025-06-09 14:59:03 +08:00
committed by GitHub
parent 5785ba0f42
commit bdfa4f6d16

View File

@@ -37,7 +37,7 @@ func GetClient(isSudo bool) (cli rpc.DaemonClient, err error) {
} }
ctx := context.Background() ctx := context.Background()
conn, err := grpc.NewClient("unix:"+sockPath, grpc.WithTransportCredentials(insecure.NewCredentials())) conn, err := grpc.NewClient("unix:"+sockPath, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithNoProxy())
if err != nil { if err != nil {
return nil, err return nil, err
} }