From 83155541b4d7d1c6ef9ec21cf198d8901f0371f6 Mon Sep 17 00:00:00 2001
From: erkin <e.altunbas@vyos.io>
Date: Thu, 16 Dec 2021 17:52:19 +0300
Subject: remote: Add checks for newly supported protocols

---
 scripts/vyatta-save-config.pl | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'scripts')

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";
-- 
cgit v1.2.3