Return None if IP address string is None

"ip_address" parameter is None when content server config value
"listen_on" is blank string.
This commit is contained in:
YOKOTA Hiroshi 2022-10-23 01:57:14 +09:00
parent b5cdb0e6ea
commit 70de4cc6a2

View File

@ -77,6 +77,9 @@ def _get_external_ip():
def verify_ipV4_address(ip_address): def verify_ipV4_address(ip_address):
if ip_address == None:
return None
result = None result = None
if ip_address != '0.0.0.0' and ip_address != '::': if ip_address != '0.0.0.0' and ip_address != '::':
# do some more sanity checks on the address # do some more sanity checks on the address