1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-24 08:25:23 +00: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)