]> granicus.if.org Git - pdns/commitdiff
rec: snmp-master-socket is a parameter, not a switch
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 14 Jun 2017 12:36:14 +0000 (14:36 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 14 Jun 2017 12:36:14 +0000 (14:36 +0200)
pdns/pdns_recursor.cc

index e2dabebcced6f6828ff16a492b49076ccca2a450..009145150e1f0d0779523b95141ede74bd920d17 100644 (file)
@@ -3219,7 +3219,7 @@ int main(int argc, char **argv)
     ::arg().setSwitch("reuseport","Enable SO_REUSEPORT allowing multiple recursors processes to listen to 1 address")="no";
 
     ::arg().setSwitch("snmp-agent", "If set, register as an SNMP agent")="no";
-    ::arg().setSwitch("snmp-master-socket", "If set and snmp-agent is set, the socket to use to register to the SNMP master")="";
+    ::arg().set("snmp-master-socket", "If set and snmp-agent is set, the socket to use to register to the SNMP master")="";
 
     ::arg().set("tcp-fast-open", "Enable TCP Fast Open support on the listening sockets, using the supplied numerical value as the queue size")="0";