Merge pull request #158 from neilalexander/unixsockets

Fallback to TCP when parsing AdminListen
This commit is contained in:
Neil Alexander 2018-07-08 10:43:40 +01:00 committed by GitHub
commit 0d9a6d7a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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