File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1141,7 +1141,11 @@ def daemon_init(self):
1141
1141
1142
1142
i_https = i_http = 0
1143
1143
1144
- for ip in [ipv4 , ipv6 ]:
1144
+ ips = [ipv6 ]
1145
+ if ipv6 != '::' :
1146
+ ipv .append (ipv4 )
1147
+
1148
+ for ip in ips :
1145
1149
if ip is None :
1146
1150
continue
1147
1151
@@ -1350,7 +1354,7 @@ def umask(mask):
1350
1354
print (("Tor2web Startup Failure: unexistent file (%s)" % config .ssl_cert ))
1351
1355
exit (1 )
1352
1356
1353
- if config .listen_ipv6 == "::" or config .listen_ipv4 == config .listen_ipv6 :
1357
+ if config .listen_ipv4 == "::" or config .listen_ipv4 == config .listen_ipv6 :
1354
1358
# fix for incorrect configurations
1355
1359
ipv4 = None
1356
1360
else :
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ def __init__(self):
66
66
self .__dict__ ['processes' ] = 1
67
67
self .__dict__ ['requests_per_process' ] = 1000000
68
68
self .__dict__ ['transport' ] = 'BOTH'
69
- self .__dict__ ['listen_ipv4' ] = '127 .0.0.1 '
70
- self .__dict__ ['listen_ipv6' ] = None
69
+ self .__dict__ ['listen_ipv4' ] = '0 .0.0.0 '
70
+ self .__dict__ ['listen_ipv6' ] = '::'
71
71
self .__dict__ ['listen_port_http' ] = 80
72
72
self .__dict__ ['listen_port_https' ] = 443
73
73
self .__dict__ ['basehost' ] = 'AUTO'
You can’t perform that action at this time.
0 commit comments