]> git.proxmox.com Git - pve-installer.git/commitdiff
sys/net: drop module path from local FQDN regex variable
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Apr 2024 16:12:05 +0000 (18:12 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Apr 2024 12:31:37 +0000 (14:31 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Proxmox/Sys/Net.pm

index c2f3e9c049b609ede7c26fe4cb066279ec283de2..cfef50a1b45ab885f5d812c47d0b897398b939f7 100644 (file)
@@ -228,7 +228,7 @@ sub parse_fqdn : prototype($) {
        if $text =~ /^[0-9]+(?:\.|$)/;
 
     die "FQDN must only consist of alphanumeric characters and dashes\n"
-       if $text !~ m/^${Proxmox::Sys::Net::FQDN_RE}$/;
+       if $text !~ m/^${FQDN_RE}$/;
 
     if ($text =~ m/^([^\.]+)\.(\S+)$/) {
        return ($1, $2);