From faaefd726a5bea836ec2c96f585b4e3027c9e85e Mon Sep 17 00:00:00 2001 From: Minchao Date: Thu, 16 Mar 2023 03:57:18 +0800 Subject: [PATCH] fix type of replica-interface-name flag to string (#166) --- cmd/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/run.go b/cmd/run.go index 395f307..c1b643a 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -87,6 +87,6 @@ func init() { _ = viper.BindPFlag(configReplicaInsecureSkipVerify, doCmd.PersistentFlags().Lookup("replica-insecure-skip-verify")) doCmd.PersistentFlags().Bool("replica-auto-setup", false, "Enable automatic setup of new AdguardHome instances. This replaces the setup wizard.") _ = viper.BindPFlag(configReplicaAutoSetup, doCmd.PersistentFlags().Lookup("replica-auto-setup")) - doCmd.PersistentFlags().Bool("replica-interface-name", false, "Optional change the interface name of the replica if it differs from the master") + doCmd.PersistentFlags().String("replica-interface-name", "", "Optional change the interface name of the replica if it differs from the master") _ = viper.BindPFlag(configReplicaInterfaceName, doCmd.PersistentFlags().Lookup("replica-interface-name")) }