]> Cypherpunks.ru repositories - nncp.git/commitdiff
Listen on all IPv6 addresses by default
authorSergey Matveev <stargrave@stargrave.org>
Mon, 9 Jan 2017 18:24:53 +0000 (21:24 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 9 Jan 2017 18:56:43 +0000 (21:56 +0300)
src/cypherpunks.ru/nncp/cmd/nncp-daemon/main.go

index 66f553e564efb35e9d234b8fc494cffc660ad950..a9bfcfee0ad5170b4a326b31d674852d3a51950c 100644 (file)
@@ -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")