mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-26 01:21:37 +00:00
Merge pull request #157 from Arceliar/develop
Update admin socket error message and run gofmt
This commit is contained in:
commit
70e755fdd3
@ -245,7 +245,7 @@ func (a *admin) listen() {
|
||||
case "tcp":
|
||||
a.listener, err = net.Listen("tcp", u.Host)
|
||||
default:
|
||||
err = errors.New("protocol not supported")
|
||||
err = errors.New(fmt.Sprint("protocol not supported: ", u.Scheme))
|
||||
}
|
||||
} else {
|
||||
a.listener, err = net.Listen("tcp", a.listenaddr)
|
||||
|
Loading…
Reference in New Issue
Block a user