mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +00:00
Give scan callers a context for tracking local interface
When trying to leverage autodetect strategy for net config, will need to keep track of receiving interface. For now only use ipv6 for this capability, as getting the incoming nic for ipv4 would be more work.
This commit is contained in:
parent
8a01a0bbdc
commit
6550d584a2
@ -111,6 +111,8 @@ def scan_confluents():
|
||||
current['isdefault'] = True
|
||||
elif line.startswith(b'MGTIFACE: '):
|
||||
current['mgtiface'] = line.replace(b'MGTIFACE: ', b'').strip().decode('utf8')
|
||||
if len(peer) > 2:
|
||||
current['myidx'] = peer[-1]
|
||||
srvs[peer[0]] = current
|
||||
srvlist.append(peer[0])
|
||||
r = select.select((s4, s6), (), (), 2)
|
||||
|
Loading…
Reference in New Issue
Block a user