Browse Source

Automatically whitelist ".local" or ".local.", aka mDNS name (#1141)

Closes #1138
tags/2.3.4RC1
Sander 7 years ago
committed by Safihre
parent
commit
a90356c6e7
  1. 5
      sabnzbd/interface.py

5
sabnzbd/interface.py

@ -174,6 +174,11 @@ def check_hostname():
if host in cfg.host_whitelist():
return True
# Fine if ends with ".local" or ".local.", aka mDNS name
# See rfc6762 Multicast DNS
if host.endswith(('.local', '.local.')):
return True
# Ohoh, bad
log_warning_and_ip(T('Refused connection with hostname "%s" from:') % host)
return False

Loading…
Cancel
Save