[REV] change change the default value of node ip to 0.0.0.0

This commit is contained in:
GLYASAI 2018-11-27 13:50:17 +08:00
parent 337ad83743
commit 782f84db6c

View File

@ -76,7 +76,7 @@ func (g *GWServer) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&g.NginxUser, "nginx-user", "root", "nginx user name") fs.StringVar(&g.NginxUser, "nginx-user", "root", "nginx user name")
fs.IntVar(&g.KeepaliveRequests, "keepalive-requests", 100000, "Number of requests a client can make over the keep-alive connection. This is set high for testing.") fs.IntVar(&g.KeepaliveRequests, "keepalive-requests", 100000, "Number of requests a client can make over the keep-alive connection. This is set high for testing.")
fs.IntVar(&g.KeepaliveTimeout, "keepalive-timeout", 30, "Timeout for keep-alive connections. Server will close connections after this time.") fs.IntVar(&g.KeepaliveTimeout, "keepalive-timeout", 30, "Timeout for keep-alive connections. Server will close connections after this time.")
fs.StringVar(&g.IP, "ip", "127.0.0.1", "Node ip.") // TODO: more detail fs.StringVar(&g.IP, "ip", "0.0.0.0", "Node ip.") // TODO: more detail
} }
// SetLog sets log // SetLog sets log