]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
unbound-dhcp-leases-bridge: Allow hostnames containing underscores
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Apr 2023 14:04:17 +0000 (16:04 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Apr 2023 14:04:17 +0000 (16:04 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/unbound/unbound-dhcp-leases-bridge

index e89e0446b48e90e92a5a812db36c19226fc042dd..3f4f10a900c01f24d27004f9bdc01fe5685adcca 100644 (file)
@@ -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