mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 21:10:29 +00:00
Fail to TCP when parsing AdminListen
This commit is contained in:
parent
70e755fdd3
commit
d59bdfeb99
@ -245,7 +245,8 @@ func (a *admin) listen() {
|
||||
case "tcp":
|
||||
a.listener, err = net.Listen("tcp", u.Host)
|
||||
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 {
|
||||
a.listener, err = net.Listen("tcp", a.listenaddr)
|
||||
|
Loading…
Reference in New Issue
Block a user