whoop
This commit is contained in:
parent
9560e34c04
commit
3fec3cea16
@ -57,6 +57,12 @@ class TunnelBroker(object):
|
|||||||
logger.debug('IP update forced; updating.')
|
logger.debug('IP update forced; updating.')
|
||||||
self._get_my_ip()
|
self._get_my_ip()
|
||||||
self.update()
|
self.update()
|
||||||
|
logger.debug('Attempting to clean up any pre-existing config')
|
||||||
|
try:
|
||||||
|
self.stop()
|
||||||
|
logger.debug('Pre-existing config removed, continuing')
|
||||||
|
except Exception as e:
|
||||||
|
logger.debug('Config seems to not exist, continuing')
|
||||||
ipr = IPRoute()
|
ipr = IPRoute()
|
||||||
try:
|
try:
|
||||||
ipr.link('add',
|
ipr.link('add',
|
||||||
|
Loading…
Reference in New Issue
Block a user