gocanaryCmd.PersistentFlags().Uint16Var(&httpPort,"http-port",80,"Port for http server")
gocanaryCmd.PersistentFlags().Uint16Var(&httpsPort,"https-port",443,"Port for https server")
//autocert?
gocanaryCmd.PersistentFlags().StringVar(&dnsAnswerWith,"dns-answer-with","","IP address to give as an answer to all DNS request, if empty NXDOMAIN")
gocanaryCmd.PersistentFlags().StringVar(&dnsAnswerWith,"dns-answer-with","","IP address to give as an answer to DNS request matching a canary, if empty NXDOMAIN")
gocanaryCmd.PersistentFlags().BoolVar(&dnsNotAnswer,"dns-not-answer",false,"Do not answer with any response")
gocanaryCmd.PersistentFlags().StringVar(&httpsCert,"https-cert","cert.pem","File contained the certificate in PEM format")
gocanaryCmd.PersistentFlags().StringVar(&httpsKey,"https-key","cert.key","File contained the certificate key in PEM format")
...
...
@@ -79,8 +79,8 @@ func init() {
gocanaryCmd.PersistentFlags().BoolVar(&dnsEnabled,"enable-dns",true,"Enable DNS listeners (tcp and udp)")
gocanaryCmd.PersistentFlags().BoolVar(&syslogEnabled,"enable-syslog",false,"Enable logging to syslog")
gocanaryCmd.PersistentFlags().StringArrayVar(&domains,"domain",[]string{},"Only respond to this domain (can be specified multiple times)")
gocanaryCmd.PersistentFlags().StringArrayVar(&autocertDomains,"autocert-domain",[]string{},"Enable let's encrypt autocertificate (can be specified multiple times), this will ignore https-cert and http-key options")
gocanaryCmd.PersistentFlags().StringArrayVar(&domains,"domain",[]string{},"Only respond to this domain (multiple accepted)")
gocanaryCmd.PersistentFlags().StringArrayVar(&autocertDomains,"autocert-domain",[]string{},"Enable let's encrypt autocertificate (multiple accepted), https-cert and http-key will be ignored")