mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-12-22 16:07:31 +00:00
Merge pull request #158 from neilalexander/unixsockets
Fallback to TCP when parsing AdminListen
This commit is contained in:
commit
0d9a6d7a49
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user