1
0
mirror of synced 2024-11-25 22:36:04 +03:00

Update IKEv2 script

- Improve output for auto mode when custom options are specified
This commit is contained in:
hwdsl2 2021-04-11 13:53:38 -05:00
parent cc1223369f
commit f35ea9ed0d

View File

@ -299,7 +299,20 @@ EOF
}
show_start_message() {
bigecho "Starting IKEv2 setup in auto mode, using default options."
if [ -n "$VPN_DNS_NAME" ] || [ -n "$VPN_CLIENT_NAME" ] || [ -n "$VPN_DNS_SRV1" ]; then
bigecho "Starting IKEv2 setup in auto mode."
printf '%s' "## Using custom options: "
[ -n "$VPN_DNS_NAME" ] && printf '%s' "VPN_DNS_NAME "
[ -n "$VPN_CLIENT_NAME" ] && printf '%s' "VPN_CLIENT_NAME "
if [ -n "$VPN_DNS_SRV1" ] && [ -n "$VPN_DNS_SRV2" ]; then
printf '%s' "VPN_DNS_SRV1 VPN_DNS_SRV2"
elif [ -n "$VPN_DNS_SRV1" ]; then
printf '%s' "VPN_DNS_SRV1"
fi
echo
else
bigecho "Starting IKEv2 setup in auto mode, using default options."
fi
}
show_add_client_message() {