commit | 044a7794d0ce4fb11aaa419fd13254cb7050cde5 | [log] [tgz] |
---|---|---|
author | yanghao <73453250+yanghao605@users.noreply.github.com> | Sun Mar 10 15:32:26 2024 +0800 |
committer | GitHub <noreply@github.com> | Sun Mar 10 15:32:26 2024 +0800 |
tree | e8adc0500b55e0837582a01c7f10579d71ce78d0 | |
parent | 36414fc0be83ef45819fc63345dc2337dea5f7d9 [diff] | |
parent | 2d4c3bfcc0164ff245382708468f67d900e701be [diff] |
Merge pull request #167 from yanghao605/1.8.0 [#119] bug fix, get service ports from env
diff --git a/proxy/cmd/cmd.go b/proxy/cmd/cmd.go index 786dc59..d50f75f 100644 --- a/proxy/cmd/cmd.go +++ b/proxy/cmd/cmd.go
@@ -61,7 +61,7 @@ }, cli.StringFlag{ Name: "service-ports", - EnvVar: common.EnvServicePorts, + EnvVar: os.Getenv(common.EnvServicePorts), Usage: "service protocol and port,examples: --service-ports=http:3000,grpc:8000", Destination: &Configs.LocalServicePorts, },