X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FAbstractMigrate.pm;h=140b4796f3a0f1a9291a3ef20fe2b6b74768c731;hp=b58d45947b7b8455e711ef65b911411ed6943449;hb=cca9492eb4e7226142ac36eaf637f3dd76570c45;hpb=abc1afd874c5a1ea126dbcf5013166512264e6f1 diff --git a/src/PVE/AbstractMigrate.pm b/src/PVE/AbstractMigrate.pm index b58d459..140b479 100644 --- a/src/PVE/AbstractMigrate.pm +++ b/src/PVE/AbstractMigrate.pm @@ -95,8 +95,7 @@ sub get_remote_migration_ip { PVE::Tools::run_command($cmd, outfunc => sub { my $line = shift; - # use non-restrictive regex for ip, its already checked by the remote side - if ($line =~ m/^ip: '(\S+)'$/) { + if ($line =~ m/^ip: '($PVE::Tools::IPRE)'$/) { $ip = $1; } });