summaryrefslogtreecommitdiff
path: root/scripts/vyatta-load-config.pl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2017-11-03 14:58:17 +0100
committerChristian Poessinger <christian@poessinger.com>2017-11-03 14:58:17 +0100
commit4caf959577c2b4351ba45f71dcaee55484970430 (patch)
treec4e3066062702f380149b45640d67716e5b9ead4 /scripts/vyatta-load-config.pl
parent460a08d652ab7f7f38bf6c5b46d57009300d81da (diff)
downloadvyatta-cfg-4caf959577c2b4351ba45f71dcaee55484970430.tar.gz
vyatta-cfg-4caf959577c2b4351ba45f71dcaee55484970430.zip
T281: Add https support to the load command
Diffstat (limited to 'scripts/vyatta-load-config.pl')
-rwxr-xr-xscripts/vyatta-load-config.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/vyatta-load-config.pl b/scripts/vyatta-load-config.pl
index 517b7ff..de6d9ab 100755
--- a/scripts/vyatta-load-config.pl
+++ b/scripts/vyatta-load-config.pl
@@ -75,11 +75,12 @@ if ( $load_file =~ /^[^\/]\w+:\// ) {
if ( $load_file =~ /^(\w+):\/\/\w/ ) {
$mode = 'url';
$proto = lc($1);
- unless( $proto eq 'tftp' ||
- $proto eq 'ftp' ||
- $proto eq 'http' ||
- $proto eq 'scp' ||
- $proto eq 'sftp' ) {
+ unless( $proto eq 'tftp' ||
+ $proto eq 'ftp' ||
+ $proto eq 'http' ||
+ $proto eq 'https' ||
+ $proto eq 'scp' ||
+ $proto eq 'sftp' ) {
die "Invalid url protocol [$proto]\n";
}
} else {
@@ -104,7 +105,6 @@ elsif ( $mode eq 'url' ) {
exit 1;
}
if ( $proto eq 'http' ) {
-
#
# error codes are send back in html, so 1st try a header
# and look for "HTTP/1.1 200 OK"