set default listen address to 127.0.0.1 (loopback only)
This commit is contained in:
parent
23af74a05e
commit
f1432818ef
2
main.go
2
main.go
@ -33,7 +33,7 @@ var (
|
|||||||
func init() {
|
func init() {
|
||||||
flag.StringVar(&ConfigFile, "config", "config.json", "Config file")
|
flag.StringVar(&ConfigFile, "config", "config.json", "Config file")
|
||||||
flag.StringVar(&TemplateFile, "template", "template.html", "template HTML file")
|
flag.StringVar(&TemplateFile, "template", "template.html", "template HTML file")
|
||||||
flag.StringVar(&ListenAddress, "listen", "0.0.0.0:32148", "listen address")
|
flag.StringVar(&ListenAddress, "listen", "127.0.0.1:32148", "listen address")
|
||||||
}
|
}
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user