This commit is contained in:
brent s. 2020-05-12 21:02:25 -04:00
parent 9560e34c04
commit 3fec3cea16
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
1 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,12 @@ class TunnelBroker(object):
logger.debug('IP update forced; updating.')
self._get_my_ip()
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()
try:
ipr.link('add',