5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-22 23:25:39 +00:00

Also don't start if AdminListen is empty

This commit is contained in:
Neil Alexander 2018-12-09 17:53:31 +00:00
parent 5ed197b3ca
commit 6801d713a7
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -326,7 +326,7 @@ func (a *admin) init(c *Core, listenaddr string) {
// start runs the admin API socket to listen for / respond to admin API calls.
func (a *admin) start() error {
if a.listenaddr != "none" {
if a.listenaddr != "none" && a.listenaddr != "" {
go a.listen()
}
return nil