mirror of
https://github.com/xcat2/confluent.git
synced 2026-01-11 18:42:29 +00:00
Explicitly recognize fe80::/64 as 'local'
For various reasons, it is likely/expected for fe80:: to fail the 'local' check. This is fine in most contexts, except for credserver and ssdp. ssdp already special cased fe80::, so special case fe80:: in credserver as well.
This commit is contained in:
@@ -43,6 +43,8 @@ libc = ctypes.CDLL(ctypes.util.find_library('c'))
|
||||
|
||||
|
||||
def address_is_somewhat_trusted(address, nodename, cfm):
|
||||
if netutil.ip_on_same_subnet(address.split('%')[0], 'fe80::', 64):
|
||||
return True
|
||||
if netutil.address_is_local(address):
|
||||
return True
|
||||
authnets = cfm.get_node_attributes(nodename, 'trusted.subnets')
|
||||
|
||||
Reference in New Issue
Block a user