From efefa10b18da5984cc71776d51be35144014c38e Mon Sep 17 00:00:00 2001 From: bugfixin Date: Wed, 19 Jul 2023 00:33:34 -0700 Subject: [PATCH] Allow underscores in DNS names from DHCP leases (#6665) --- src/opnsense/scripts/dhcp/dnsmasq_watcher.py | 2 +- src/opnsense/scripts/dhcp/unbound_watcher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opnsense/scripts/dhcp/dnsmasq_watcher.py b/src/opnsense/scripts/dhcp/dnsmasq_watcher.py index 62c181bcd..be99d8088 100755 --- a/src/opnsense/scripts/dhcp/dnsmasq_watcher.py +++ b/src/opnsense/scripts/dhcp/dnsmasq_watcher.py @@ -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-]*(?