5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-26 15:21:37 +00:00

Fail to TCP when parsing AdminListen

This commit is contained in:
Neil Alexander 2018-07-08 10:37:20 +01:00
parent 70e755fdd3
commit d59bdfeb99
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -245,7 +245,8 @@ func (a *admin) listen() {
case "tcp": case "tcp":
a.listener, err = net.Listen("tcp", u.Host) a.listener, err = net.Listen("tcp", u.Host)
default: default:
err = errors.New(fmt.Sprint("protocol not supported: ", u.Scheme)) // err = errors.New(fmt.Sprint("protocol not supported: ", u.Scheme))
a.listener, err = net.Listen("tcp", a.listenaddr)
} }
} else { } else {
a.listener, err = net.Listen("tcp", a.listenaddr) a.listener, err = net.Listen("tcp", a.listenaddr)