mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-05 18:20:48 -08:00
Warn if no lighthouses were configured on a non lighthouse node (#587)
This commit is contained in:
parent
75306487c5
commit
48c47f5841
2 changed files with 8 additions and 0 deletions
4
main.go
4
main.go
|
|
@ -249,6 +249,10 @@ func Main(c *config.C, configTest bool, buildVersion string, logger *logrus.Logg
|
|||
lighthouseHosts[i] = iputil.Ip2VpnIp(ip)
|
||||
}
|
||||
|
||||
if !amLighthouse && len(lighthouseHosts) == 0 {
|
||||
l.Warn("No lighthouses.hosts configured, this host will only be able to initiate tunnels with static_host_map entries")
|
||||
}
|
||||
|
||||
lightHouse := NewLightHouse(
|
||||
l,
|
||||
amLighthouse,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue