proto_config_add_string "local_ip"
proto_config_add_string "username"
proto_config_add_string "password"
+ proto_config_add_int "persist_int"
proto_config_add_string "trusted_cert"
proto_config_add_string "remote_status_check"
no_device=1
local msg ifname ip server_ips pwfile callfile
- local peeraddr port tunlink local_ip username password trusted_cert \
- remote_status_check
- json_get_vars host peeraddr port tunlink local_ip username password trusted_cert \
- remote_status_check
+ local peeraddr port tunlink local_ip username password persist_int \
+ trusted_cert remote_status_check
+ json_get_vars host peeraddr port tunlink local_ip username password persist_int \
+ trusted_cert remote_status_check
ifname="vpn-$config"
append_args "--ifname=$iface_device_name"
}
+ [ -n "$persist_int" ] && append_args "--persistent=$persist_int"
[ -n "$trusted_cert" ] && append_args "--trusted-cert=$trusted_cert"
[ -n "$username" ] && append_args -u "$username"
[ -n "$password" ] && {