From f1432818ef0b1fa1ec4ec8c90e54eb97f074fce3 Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Sun, 13 Jun 2021 13:59:33 +0800 Subject: [PATCH] set default listen address to 127.0.0.1 (loopback only) --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 5158632..bbff140 100644 --- a/main.go +++ b/main.go @@ -33,7 +33,7 @@ var ( func init() { flag.StringVar(&ConfigFile, "config", "config.json", "Config 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 {