mirror of
https://github.com/slackhq/nebula.git
synced 2024-11-14 11:57:23 +08:00
derp - we discover the port so we have to check the config setting
This commit is contained in:
parent
5828874319
commit
b4b5818085
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -245,7 +245,7 @@ func Main(config *Config, configTest bool, buildVersion string, logger *logrus.L
|
||||||
amLighthouse := config.GetBool("lighthouse.am_lighthouse", false)
|
amLighthouse := config.GetBool("lighthouse.am_lighthouse", false)
|
||||||
|
|
||||||
// fatal if am_lighthouse is enabled but we are using an ephemeral port
|
// fatal if am_lighthouse is enabled but we are using an ephemeral port
|
||||||
if amLighthouse && port == 0 {
|
if amLighthouse && (config.GetInt("listen.port", 0) == 0) {
|
||||||
return nil, NewContextualError("lighthouse.am_lighthouse enabled on node but no port number is set in config", nil, err)
|
return nil, NewContextualError("lighthouse.am_lighthouse enabled on node but no port number is set in config", nil, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue