mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-08-01 02:23:42 +00:00
Also don't start if AdminListen is empty
This commit is contained in:
@@ -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.
|
// start runs the admin API socket to listen for / respond to admin API calls.
|
||||||
func (a *admin) start() error {
|
func (a *admin) start() error {
|
||||||
if a.listenaddr != "none" {
|
if a.listenaddr != "none" && a.listenaddr != "" {
|
||||||
go a.listen()
|
go a.listen()
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Reference in New Issue
Block a user