mirror of
https://github.com/slackhq/nebula.git
synced 2024-11-10 09:12:39 +08:00
Allow ValidateLHStaticEntries to check all static host map entries (#141)
* Allow ValidateLHStaticEntries to check all static host map entries * Cleaner fix for ValidateLHStaticEntries
This commit is contained in:
parent
fd8ad5d0d7
commit
efe741ad66
1 changed files with 1 additions and 4 deletions
|
@ -55,10 +55,7 @@ func NewLightHouse(amLighthouse bool, myIp uint32, ips []uint32, interval int, n
|
|||
|
||||
func (lh *LightHouse) ValidateLHStaticEntries() error {
|
||||
for lhIP, _ := range lh.lighthouses {
|
||||
for ip, _ := range lh.staticList {
|
||||
if lhIP == ip {
|
||||
break
|
||||
}
|
||||
if _, ok := lh.staticList[lhIP]; !ok {
|
||||
return fmt.Errorf("Lighthouse %s does not have a static_host_map entry", IntIp(lhIP))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue