diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-save-config.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-save-config.pl b/scripts/vyatta-save-config.pl index 693c4da..39f1f9e 100755 --- a/scripts/vyatta-save-config.pl +++ b/scripts/vyatta-save-config.pl @@ -57,7 +57,7 @@ if ($save_file =~ /^[^\/]\w+:\//) { if ($save_file =~ /^(\w+):\/\/\w/) { $mode = 'url'; $proto = lc($1); - if (grep { lc($topdir) ne $_ } ("ftp", "tftp", "http", "https", "scp", "sftp")) { + if (grep { lc($proto) ne $_ } ("ftp", "tftp", "scp", "sftp")) { print "Invalid url protocol [$proto]\n"; exit 1; } |