1
0
mirror of synced 2024-11-26 06:46:06 +03:00

Update IKEv2 script

- Cleanup
This commit is contained in:
hwdsl2 2022-01-29 12:36:03 -06:00
parent 2bb938416c
commit 14af993d6a

View File

@ -281,7 +281,7 @@ check_server_dns_name() {
check_custom_dns() { check_custom_dns() {
if { [ -n "$VPN_DNS_SRV1" ] && ! check_ip "$VPN_DNS_SRV1"; } \ if { [ -n "$VPN_DNS_SRV1" ] && ! check_ip "$VPN_DNS_SRV1"; } \
|| { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; } then || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; }; then
exiterr "Invalid DNS server(s)." exiterr "Invalid DNS server(s)."
fi fi
} }
@ -1031,7 +1031,7 @@ apply_ubuntu1804_nss_fix() {
} }
restart_ipsec_service() { restart_ipsec_service() {
if [ "$in_container" = "0" ] || { [ "$in_container" = "1" ] && service ipsec status >/dev/null 2>&1; } then if [ "$in_container" = "0" ] || { [ "$in_container" = "1" ] && service ipsec status >/dev/null 2>&1; }; then
bigecho2 "Restarting IPsec service..." bigecho2 "Restarting IPsec service..."
mkdir -p /run/pluto mkdir -p /run/pluto
service ipsec restart 2>/dev/null service ipsec restart 2>/dev/null