[pve-devel] [pve-zsync] Fix send_config with IPv6
Wolfgang Link
w.link at proxmox.com
Thu Jul 6 16:22:58 CEST 2017
Add square brackets on IP.
---
pve-zsync | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pve-zsync b/pve-zsync
index 5fa5292..b3241ff 100644
--- 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}){
--
2.11.0
More information about the pve-devel
mailing list