diff --git a/internal/command/agent/run.go b/internal/command/agent/run.go index de83723..9e4237c 100644 --- a/internal/command/agent/run.go +++ b/internal/command/agent/run.go @@ -49,10 +49,6 @@ func RunCommand() *cli.Command { controllers = append(controllers, spec.NewController()) } - if ctrlConf.Proxy.Enabled { - controllers = append(controllers, proxy.NewController()) - } - if ctrlConf.UCI.Enabled { controllers = append(controllers, openwrt.NewUCIController( string(ctrlConf.UCI.BinPath), @@ -66,6 +62,10 @@ func RunCommand() *cli.Command { )) } + if ctrlConf.Proxy.Enabled { + controllers = append(controllers, proxy.NewController()) + } + if ctrlConf.SysUpgrade.Enabled { sysUpgradeArgs := make([]string, 0) if len(ctrlConf.SysUpgrade.SysUpgradeCommand) > 1 {