5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-01 19:41:35 +00:00

update admin socket error message and run gofmt

This commit is contained in:
Arceliar 2018-07-07 19:37:36 -05:00
parent face270298
commit bf90447cc4
6 changed files with 26 additions and 26 deletions

View File

@ -245,7 +245,7 @@ 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("protocol not supported") err = errors.New(fmt.Sprint("protocol not supported: ", u.Scheme))
} }
} else { } else {
a.listener, err = net.Listen("tcp", a.listenaddr) a.listener, err = net.Listen("tcp", a.listenaddr)