From: Sergey Matveev Date: Mon, 9 Jan 2017 18:24:53 +0000 (+0300) Subject: Listen on all IPv6 addresses by default X-Git-Tag: 0.1~8 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e937c8426879e5c7241698f57e3696a28954fc7e;p=nncp.git Listen on all IPv6 addresses by default --- diff --git a/src/cypherpunks.ru/nncp/cmd/nncp-daemon/main.go b/src/cypherpunks.ru/nncp/cmd/nncp-daemon/main.go index 66f553e..a9bfcfe 100644 --- a/src/cypherpunks.ru/nncp/cmd/nncp-daemon/main.go +++ b/src/cypherpunks.ru/nncp/cmd/nncp-daemon/main.go @@ -43,7 +43,7 @@ func main() { var ( cfgPath = flag.String("cfg", nncp.DefaultCfgPath, "Path to configuration file") niceRaw = flag.Int("nice", 255, "Minimal required niceness") - bind = flag.String("bind", ":5400", "Address to bind to") + bind = flag.String("bind", "[::]:5400", "Address to bind to") maxConn = flag.Int("maxconn", 128, "Maximal number of simultaneous connections") quiet = flag.Bool("quiet", false, "Print only errors") debug = flag.Bool("debug", false, "Enable debugging information")