Enable IPv6 in proxy by environment variable
This commit is contained in:
parent
497fa3143a
commit
82f26f6c68
@ -4,7 +4,8 @@ from time import time
|
|||||||
from resettabletimer import ResettableTimer
|
from resettabletimer import ResettableTimer
|
||||||
from dmr_utils3.utils import int_id
|
from dmr_utils3.utils import int_id
|
||||||
import random
|
import random
|
||||||
import ipaddress
|
import ipaddress
|
||||||
|
import os
|
||||||
|
|
||||||
# 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'
|
||||||
@ -187,6 +188,9 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
#*******************
|
#*******************
|
||||||
|
|
||||||
|
#If IPv6 is enabled by enivornment variable...
|
||||||
|
if ListenIP == '' and 'FDPROXY_IPV6' in os.environ and bool(os.environ['FDPROXY_IPV6']):
|
||||||
|
ListenIP = '::'
|
||||||
|
|
||||||
CONNTRACK = {}
|
CONNTRACK = {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user