]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Tools.pm
INotify::read_etc_resolv_conf: ipv6 support
[pve-common.git] / src / PVE / Tools.pm
index 1a342ee04cc660f88dd567d4442ba895be5a0f43..d5a386621d1054ebea388de3fcd2c1e274aef3a1 100644 (file)
@@ -63,6 +63,8 @@ our $IPV6RE = "(?:" .
     "(?:(?:(?:(?:$IPV6H16:){0,5}$IPV6H16)?::" .            ")$IPV6H16)|" .
     "(?:(?:(?:(?:$IPV6H16:){0,6}$IPV6H16)?::" .                    ")))";
 
+our $IPRE = "(?:$IPV4RE|$IPV6RE)";
+
 use constant (CLONE_NEWNS   => 0x00020000,
               CLONE_NEWUTS  => 0x04000000,
               CLONE_NEWIPC  => 0x08000000,