fix config name for {remote,local}_allow_list (#219)

This config option should be snake_case, not camelCase.
This commit is contained in:
Wade Simmons
2020-04-08 16:20:12 -04:00
committed by GitHub
parent 0a474e757b
commit 4f6313ebd3
4 changed files with 11 additions and 11 deletions

View File

@ -143,7 +143,7 @@ func (f *Interface) closeTunnel(hostInfo *HostInfo) {
func (f *Interface) handleHostRoaming(hostinfo *HostInfo, addr *udpAddr) {
if hostDidRoam(hostinfo.remote, addr) {
if !f.lightHouse.remoteAllowList.Allow(udp2ipInt(addr)) {
hostinfo.logger().WithField("newAddr", addr).Debug("lighthouse.remoteAllowList denied roaming")
hostinfo.logger().WithField("newAddr", addr).Debug("lighthouse.remote_allow_list denied roaming")
return
}
if !hostinfo.lastRoam.IsZero() && addr.Equals(hostinfo.lastRoamRemote) && time.Since(hostinfo.lastRoam) < RoamingSupressSeconds*time.Second {