diff --git a/net/strongswan/files/swanctl.init b/net/strongswan/files/swanctl.init index 7fc4a0d10bc1b..8a94cdff2591a 100644 --- a/net/strongswan/files/swanctl.init +++ b/net/strongswan/files/swanctl.init @@ -458,6 +458,7 @@ config_remote() { local local_key local ca_cert local rekeytime + local send_certreq local remote_ca_certs local pools local eap_id @@ -483,6 +484,7 @@ config_remote() { config_get rekeytime "$conf" rekeytime config_get overtime "$conf" overtime config_get send_cert "$conf" send_cert + config_get_bool send_certreq "$conf" send_certreq 1 config_get eap_id "$conf" eap_id "%any" config_list_foreach "$conf" local_sourceip append_var local_sourceip "," @@ -583,6 +585,7 @@ config_remote() { esac [ -n "$send_cert" ] && swanctl_xappend2 "send_cert = $send_cert" + [ $send_certreq -eq 1 ] && swanctl_xappend2 "send_certreq = yes" || swanctl_xappend2 "send_certreq = no" [ $mobike -eq 1 ] && swanctl_xappend2 "mobike = yes" || swanctl_xappend2 "mobike = no"