From: Michael Tremer Date: Thu, 6 Apr 2023 14:04:17 +0000 (+0200) Subject: unbound-dhcp-leases-bridge: Allow hostnames containing underscores X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab93dabd77e19deaada2cfcbf7bb5173f20c70b2;p=people%2Fms%2Fipfire-2.x.git unbound-dhcp-leases-bridge: Allow hostnames containing underscores Signed-off-by: Michael Tremer --- diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge index e89e0446b4..3f4f10a900 100644 --- a/config/unbound/unbound-dhcp-leases-bridge +++ b/config/unbound/unbound-dhcp-leases-bridge @@ -410,7 +410,7 @@ class Lease(object): hostname = hostname.replace("\"", "") # Only return valid hostnames - m = re.match(r"^[A-Z0-9\-]{1,63}$", hostname, re.I) + m = re.match(r"^[A-Z0-9_\-]{1,63}$", hostname, re.I) if m: return hostname