if the UA timer is set to 0 - actually set it to (close to) maximum size of a 32

bit signed int - which works out at around 68 years!
For all practical purposes, this implements an unlimited timer - aka sticky static.
api
Simon 3 years ago
parent 7da8673e75
commit 0441123e07

@ -398,7 +398,7 @@ def bridgeDebug():
if enabled_system == system:
bridgeroll += 1
if not bridgeroll:
logger.warn('{BRIDGEDEBUG) system %s has no bridges', system)
logger.warning('{BRIDGEDEBUG) system %s has no bridges', system)
def kaReporting():
logger.debug('(ROUTER) KeepAlive reporting loop started')
@ -895,6 +895,12 @@ def options_config():
logger.debug('(OPTIONS) %s - DEFAULT_REFLECTOR is not an integer, ignoring',_system)
continue
#if the UA timer is set to 0 - actually set it to (close to) maximum size of a 32
#bit signed int - which works out at around 68 years!
#For all practical purposes, this implements an unlimited timer - aka sticky static.
if int(_options['DEFAULT_UA_TIMER']) == 0:
_options['DEFAULT_UA_TIMER'] = 35791394
_tmout = int(_options['DEFAULT_UA_TIMER'])
if int(_options['DEFAULT_UA_TIMER']) != CONFIG['SYSTEMS'][_system]['DEFAULT_UA_TIMER']:

Loading…
Cancel
Save

Powered by TurnKey Linux.