Skip to content

Commit 4dd95ac

Browse files
authored
Add validation type for type (hestiacp#2208)
Limit only to api and ssh the currently 2 supported methods
1 parent 594911c commit 4dd95ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/v-add-remote-dns-host

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ if [ -z "$password" ]; then
5555
else
5656
is_format_valid 'user'
5757
fi
58+
is_type_valid "api ssh" "$type"
5859
is_system_enabled "$DNS_SYSTEM" 'DNS_SYSTEM'
5960
is_password_valid
6061
is_dnshost_new

0 commit comments

Comments
 (0)