From ab93dabd77e19deaada2cfcbf7bb5173f20c70b2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 6 Apr 2023 16:04:17 +0200 Subject: [PATCH] unbound-dhcp-leases-bridge: Allow hostnames containing underscores Signed-off-by: Michael Tremer --- config/unbound/unbound-dhcp-leases-bridge | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5