|
|
|
|
@ -33,7 +33,6 @@ import const
|
|
|
|
|
import socket
|
|
|
|
|
import ipaddress
|
|
|
|
|
from socket import gethostbyname
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Does anybody read this stuff? There's a PEP somewhere that says I should do this.
|
|
|
|
|
@ -331,10 +330,6 @@ def build_config(_config_file):
|
|
|
|
|
'ENHANCED_OBP': config.getboolean(section, 'ENHANCED_OBP')
|
|
|
|
|
}})
|
|
|
|
|
|
|
|
|
|
#If IPv6 is enabled by enviornment variable...
|
|
|
|
|
if CONFIG['SYSTEMS'][section]['IP'] == '' and 'FD_DEFAULT_IPV6' in os.environ and bool(os.environ['FD_DEFAULT_IPV6']):
|
|
|
|
|
CONFIG['SYSTEMS'][section]['IP'] = '::'
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
|
|
if CONFIG['SYSTEMS'][section]['IP'] == '::':
|
|
|
|
|
|