openfortivpn: use standard 'peerdns' argument on netifd script 12799/head
authorAaron Goodman <aaronjg@stanford.edu>
Sun, 12 Jul 2020 21:39:20 +0000 (17:39 -0400)
committerAaron Goodman <aaronjg@stanford.edu>
Sun, 19 Jul 2020 22:54:48 +0000 (18:54 -0400)
Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
net/openfortivpn/Makefile
net/openfortivpn/files/openfortivpn.sh

index 2ebd79a3477e7f365a586fd5a41e5436a6bed5f2..b07672cca81cd4ac7613a6be62f47bbe0a0d92b3 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=openfortivpn
 PKG_VERSION:=1.14.1
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/adrienverge/openfortivpn/tar.gz/v$(PKG_VERSION)?
index 7ccfd762856bc9419ab5e5587c6a36b82a4a9817..7ddbc7b75714dc38fda7bafb2f60711d72c6f36d 100755 (executable)
@@ -19,8 +19,6 @@ proto_openfortivpn_init_config() {
         proto_config_add_string "password"
         proto_config_add_string "trusted_cert"
         proto_config_add_string "remote_status_check"  
-        proto_config_add_int "set_dns"
-        proto_config_add_int "pppd_use_peerdns"
         proto_config_add_int "peerdns"
         proto_config_add_int "metric"
         no_device=1
@@ -32,7 +30,7 @@ proto_openfortivpn_setup() {
         local msg
 
         json_get_vars host server port iface_name local_ip username password trusted_cert \
-                     remote_status_check set_dns pppd_use_peerdns metric
+                     remote_status_check peerdns metric
 
         ifname="vpn-$config"
 
@@ -91,11 +89,12 @@ proto_openfortivpn_setup() {
 
 
         [ -n "$port" ] && port=":$port"
+       [ -z "$peerdns" ] && peerdns=1
 
         append_args "$server$port" --pppd-ifname="$ifname" --use-syslog  -c /dev/null
-        append_args "--set-dns=$set_dns"
+        append_args "--set-dns=0"
         append_args "--no-routes"
-        append_args "--pppd-use-peerdns=$pppd_use_peerdns"
+        append_args "--pppd-use-peerdns=$peerdns"
 
         [ -n "$iface_name" ] && {
             append_args "--ifname=$iface_device_name"