summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2024-12-25 23:17:49 -0600
committerIndrajit Raychaudhuri <irc@indrajit.com>2026-07-24 12:17:23 -0500
commit5faf2bd03d156df6fdd09ab8491266a5100ddea1 (patch)
treebdcd3f340f2a2c058ff38669a3b00bd4a8dcb1ad /src
parent65c8d1538d0fa68d4e7306aa152cdc39ba082b6b (diff)
downloadvyos-1x-5faf2bd03d156df6fdd09ab8491266a5100ddea1.tar.gz
vyos-1x-5faf2bd03d156df6fdd09ab8491266a5100ddea1.zip
ddclient: T6981: Block additional unsupported protocols
In ddclient v4, some new supported protocols, viz., directnic, emailonly have configuration that cannot be supported in current VyOS config mode yet.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/completion/list_ddclient_protocols.sh2
-rwxr-xr-xsrc/validators/ddclient-protocol2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/completion/list_ddclient_protocols.sh b/src/completion/list_ddclient_protocols.sh
index 0c8c2712d..0e66b006a 100755
--- a/src/completion/list_ddclient_protocols.sh
+++ b/src/completion/list_ddclient_protocols.sh
@@ -14,4 +14,4 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-echo -n $(ddclient -list-protocols | grep -vE 'cloudns|porkbun')
+echo -n $(ddclient --list-protocols | grep -vE 'cloudns|directnic|emailonly|porkbun')
diff --git a/src/validators/ddclient-protocol b/src/validators/ddclient-protocol
index 0d28039d3..217853939 100755
--- a/src/validators/ddclient-protocol
+++ b/src/validators/ddclient-protocol
@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-ddclient -list-protocols | grep -vE 'cloudns|porkbun' | grep -qw $1
+ddclient --list-protocols | grep -vE 'cloudns|directnic|emailonly|porkbun' | grep -qw $1
if [ $? -gt 0 ]; then
echo "Error: $1 is not a valid protocol, please choose from the supported list of protocols"