Skip to content

Commit 9023dab

Browse files
committed
TUN-3715: Apply input source to the correct context
1 parent 89d0e45 commit 9023dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/cloudflared/cliutil/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func applyConfig(c *cli.Context, inputSource altsrc.InputSourceContext) error {
4747
targetFlags := context.Command.Flags
4848
if context.Command.Name == "" {
4949
// commands that define child subcommands are executed as if they were an app
50-
targetFlags = c.App.Flags
50+
targetFlags = context.App.Flags
5151
}
5252
if err := altsrc.ApplyInputSourceValues(context, inputSource, targetFlags); err != nil {
5353
return err

0 commit comments

Comments
 (0)