Commit fadcc00a authored by alexstocks's avatar alexstocks

use HostAddress2

parent ec48a400
......@@ -134,7 +134,8 @@ func initServer() {
for _, port := range portList {
server = getty.NewServer()
// addr = *host + ":" + port
addr = conf.Host + ":" + port
// addr = conf.Host + ":" + port
addr = getty.HostAddress2(conf.Host, port)
err = server.Listen("tcp", addr)
if err != nil {
panic(fmt.Sprintf("server.Listen(tcp, addr:%s) = error{%#v}", addr, err))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment