1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-19 15:45:20 -05:00

Fix getting shared flags for balance info command (#1905)

This commit is contained in:
Hork
2022-09-07 11:01:19 +01:00
committed by GitHub
parent 1b0e046c99
commit d355e80b18

View File

@@ -48,7 +48,7 @@ func executeBalancerInfo(cmd *base.Command, args []string) {
defer close()
client := routerService.NewRoutingServiceClient(conn)
r := &routerService.GetBalancerInfoRequest{Tag: args[0]}
r := &routerService.GetBalancerInfoRequest{Tag: cmd.Flag.Arg(0)}
resp, err := client.GetBalancerInfo(ctx, r)
if err != nil {
base.Fatalf("failed to get health information: %s", err)