mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
Allow underscores in DNS names from DHCP leases (#6665)
This commit is contained in:
parent
dd0506971a
commit
efefa10b18
@ -49,7 +49,7 @@ def run_watcher(target_filename, default_domain, watch_file, service_pid):
|
||||
# initiate lease watcher and setup cache
|
||||
dhcpdleases = watchers.dhcpd.DHCPDLease(watch_file)
|
||||
cached_leases = dict()
|
||||
hostname_pattern = re.compile("(?!-)[A-Z0-9-]*(?<!-)$", re.IGNORECASE)
|
||||
hostname_pattern = re.compile("(?!-)[A-Z0-9-_]*(?<!-)$", re.IGNORECASE)
|
||||
|
||||
# start watching dhcp leases
|
||||
last_cleanup = time.time()
|
||||
|
||||
@ -136,7 +136,7 @@ def run_watcher(target_filename, default_domain, watch_file, config):
|
||||
dhcpdleases = watchers.dhcpd.DHCPDLease(watch_file)
|
||||
cached_leases = dict()
|
||||
unbound_local_data = UnboundLocalData()
|
||||
hostname_pattern = re.compile("(?!-)[A-Z0-9-]*(?<!-)$", re.IGNORECASE)
|
||||
hostname_pattern = re.compile("(?!-)[A-Z0-9-_]*(?<!-)$", re.IGNORECASE)
|
||||
|
||||
# start watching dhcp leases
|
||||
last_cleanup = time.time()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user