Skip to content
Snippets Groups Projects
Commit eaa82b8f authored by David Fifield's avatar David Fifield
Browse files

Move flag code out of init into main.

parent 3f4f5d22
No related branches found
No related tags found
No related merge requests found
......@@ -229,9 +229,9 @@ func ipHandler(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(remoteAddr))
}
var cert, cert_key, http_port, https_port string
func main() {
var cert, cert_key, http_port, https_port string
func init() {
flag.StringVar(&cert, "cert", "", "TLS certificate file")
flag.StringVar(&cert_key, "key", "", "TLS key file")
......@@ -250,9 +250,6 @@ func init() {
log.Println("Using cert file:", cert)
log.Println("Using cert key file: ", cert_key)
}
func main() {
ctx := NewBrokerContext()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment