Docker changes source port too
This commit is contained in:
parent
6b2b39f5e1
commit
d2d2317a0b
|
@ -218,12 +218,9 @@ class OPENBRIDGE(DatagramProtocol):
|
||||||
self._config['_bcka'] = time()
|
self._config['_bcka'] = time()
|
||||||
if _sockaddr != self._config['TARGET_SOCK']:
|
if _sockaddr != self._config['TARGET_SOCK']:
|
||||||
h,p = _sockaddr
|
h,p = _sockaddr
|
||||||
if p == self._config['TARGET_PORT']:
|
if h != self.config['TARGET_IP']:
|
||||||
self._config['TARGET_SOCK'] = _sockaddr
|
|
||||||
self.config['TARGET_IP'] = h
|
self.config['TARGET_IP'] = h
|
||||||
logger.info('(%s) *BridgeControl* Source IP has changed for OBP, updating',self._system)
|
logger.info('(%s) *BridgeControl* Source IP has changed for OBP, updating',self._system)
|
||||||
else:
|
|
||||||
logger.info('(%s) *BridgeControl* Source IP has changed for OBP but port has also changed, *NOT* updating, IP: %s, Port: %s',self._system, h, p)
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
h,p = _sockaddr
|
h,p = _sockaddr
|
||||||
|
|
Loading…
Reference in New Issue