5
0
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:
Arceliar 2018-07-07 19:43:53 -05:00 committed by GitHub
commit 70e755fdd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 26 deletions

View File

@ -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)