mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-07 03:24:04 +00:00
Remove config.NodeState (hot reconfig is no longer supported)
This commit is contained in:
@ -188,7 +188,9 @@ func (intf *link) handler() (chan struct{}, error) {
|
||||
}
|
||||
}
|
||||
// Check if we're authorized to connect to this key / IP
|
||||
allowed := intf.links.core.config.GetCurrent().AllowedPublicKeys
|
||||
intf.links.core.config.RLock()
|
||||
allowed := intf.links.core.config.AllowedPublicKeys
|
||||
intf.links.core.config.RUnlock()
|
||||
isallowed := len(allowed) == 0
|
||||
for _, k := range allowed {
|
||||
if k == hex.EncodeToString(meta.key) { // TODO: this is yuck
|
||||
|
Reference in New Issue
Block a user