if binding to 0.0.0.0, don't validate source ip in client api
This commit is contained in:
parent
b1441e8c10
commit
45b691a06a
@ -54,6 +54,7 @@ class ClientAPISecurity:
|
||||
"""Validate request has set password & is the correct hostname."""
|
||||
# For the purpose of preventing DNS rebinding attacks
|
||||
localhost = True
|
||||
if client_api.host != '0.0.0.0':
|
||||
if request.host != '%s:%s' % \
|
||||
(client_api.host, client_api.bindPort):
|
||||
localhost = False
|
||||
|
@ -91,7 +91,7 @@ class NetController:
|
||||
if '100' not in line.decode():
|
||||
logger.info(line.decode().strip(), terminal=True)
|
||||
if 'bootstrapped 100' in line.decode().lower():
|
||||
logger.info(line.decode())
|
||||
logger.info(line.decode(), terminal=True)
|
||||
break
|
||||
elif 'opening socks listener' in line.decode().lower():
|
||||
logger.debug(line.decode().replace('\n', ''))
|
||||
|
Loading…
Reference in New Issue
Block a user