|
|
|
@ -5,11 +5,12 @@ from dmr_utils3.utils import int_id
|
|
|
|
import random
|
|
|
|
import random
|
|
|
|
import ipaddress
|
|
|
|
import ipaddress
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
|
|
|
|
import setproctitle from proctitle
|
|
|
|
|
|
|
|
|
|
|
|
# Does anybody read this stuff? There's a PEP somewhere that says I should do this.
|
|
|
|
# Does anybody read this stuff? There's a PEP somewhere that says I should do this.
|
|
|
|
__author__ = 'Simon Adlem - G7RZU'
|
|
|
|
__author__ = 'Simon Adlem - G7RZU'
|
|
|
|
__copyright__ = 'Copyright (c) Simon Adlem, G7RZU 2020,2021'
|
|
|
|
__copyright__ = 'Copyright (c) Simon Adlem, G7RZU 2020,2021'
|
|
|
|
__credits__ = 'Jon Lee, G4TSN; Norman Williams, M6NBP'
|
|
|
|
__credits__ = 'Jon Lee, G4TSN; Norman Williams, M6NBP; Christian, OA4DOA'
|
|
|
|
__license__ = 'GNU GPLv3'
|
|
|
|
__license__ = 'GNU GPLv3'
|
|
|
|
__maintainer__ = 'Simon Adlem G7RZU'
|
|
|
|
__maintainer__ = 'Simon Adlem G7RZU'
|
|
|
|
__email__ = 'simon@gb7fr.org.uk'
|
|
|
|
__email__ = 'simon@gb7fr.org.uk'
|
|
|
|
@ -184,6 +185,10 @@ if __name__ == '__main__':
|
|
|
|
|
|
|
|
|
|
|
|
#*******************
|
|
|
|
#*******************
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Set process title early
|
|
|
|
|
|
|
|
setproctitle(__file__)
|
|
|
|
|
|
|
|
|
|
|
|
#If IPv6 is enabled by enivornment variable...
|
|
|
|
#If IPv6 is enabled by enivornment variable...
|
|
|
|
if ListenIP == '' and 'FDPROXY_IPV6' in os.environ and bool(os.environ['FDPROXY_IPV6']):
|
|
|
|
if ListenIP == '' and 'FDPROXY_IPV6' in os.environ and bool(os.environ['FDPROXY_IPV6']):
|
|
|
|
ListenIP = '::'
|
|
|
|
ListenIP = '::'
|
|
|
|
|