diff options
author | erkin <e.altunbas@vyos.io> | 2021-12-16 17:52:19 +0300 |
---|---|---|
committer | erkin <e.altunbas@vyos.io> | 2021-12-16 17:52:19 +0300 |
commit | 83155541b4d7d1c6ef9ec21cf198d8901f0371f6 (patch) | |
tree | 6137c173a0dfbbe075aae230e4887c2e37ba8fe8 | |
parent | dae314be6df89af4da648cc94855f145bbf43625 (diff) | |
download | vyatta-cfg-83155541b4d7d1c6ef9ec21cf198d8901f0371f6.tar.gz vyatta-cfg-83155541b4d7d1c6ef9ec21cf198d8901f0371f6.zip |
remote: Add checks for newly supported protocols
-rwxr-xr-x | scripts/vyatta-save-config.pl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/vyatta-save-config.pl b/scripts/vyatta-save-config.pl index 9c973d9..9f1ec5c 100755 --- a/scripts/vyatta-save-config.pl +++ b/scripts/vyatta-save-config.pl @@ -57,9 +57,13 @@ if ($save_file =~ /^[^\/]\w+:\//) { if ($save_file =~ /^(\w+):\/\/\w/) { $mode = 'url'; $proto = lc($1); - if ($proto eq "scp") {} + if ($proto eq "ftp") {} + elsif ($proto eq "ftps") {} + elsif ($proto eq "http") {} + elsif ($proto eq "https") {} + elsif ($proto eq "scp") {} elsif ($proto eq "sftp") {} - elsif ($proto eq "ftp") {} + elsif ($proto eq "ssh") {} elsif ($proto eq "tftp") {} else { print "Invalid URL protocol [$proto]\n"; |