set default listen address to 127.0.0.1 (loopback only)

This commit is contained in:
Edgaru089 2021-06-13 13:59:33 +08:00
parent 23af74a05e
commit f1432818ef

View File

@ -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 {