]> git.proxmox.com Git - pve-zsync.git/commitdiff
Fix send_config with IPv6
authorWolfgang Link <w.link@proxmox.com>
Thu, 6 Jul 2017 14:22:58 +0000 (16:22 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 7 Jul 2017 07:31:55 +0000 (09:31 +0200)
Add square brackets on IP.

pve-zsync

index 5fa529257fd8a8a9fafc8693e38e8d10cc2ce167..b3241ff2f19ddd2ae4b33a1b966a0e4281e29714 100644 (file)
--- a/pve-zsync
+++ b/pve-zsync
@@ -948,7 +948,7 @@ sub send_image {
                run_cmd(['scp', '--', $source_target, "root\@[$dest->{ip}]:$dest_target_new"]);
            } elsif ($source->{ip}) {
                run_cmd(['mkdir', '-p', '--', $config_dir]);
-               run_cmd(['scp', '--', "root\@$source->{ip}:$source_target", $dest_target_new]);
+               run_cmd(['scp', '--', "root\@[$source->{ip}]:$source_target", $dest_target_new]);
            }
 
            if ($source->{destroy}){