[NetworkManager-fortisslvpn] service: fix peer DNS handling
- From: Beniamino Galvani <bgalvani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [NetworkManager-fortisslvpn] service: fix peer DNS handling
- Date: Mon, 14 Sep 2020 12:41:12 +0000 (UTC)
commit 66d431f18fd4812ed984790c877d965b35b69612
Author: Tomas Kovar <tomas kovar sk>
Date: Sat Apr 4 22:16:01 2020 +0200
service: fix peer DNS handling
https://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn/-/issues/20
https://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn/-/merge_requests/15
src/nm-fortisslvpn-service.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/nm-fortisslvpn-service.c b/src/nm-fortisslvpn-service.c
index c2105af..9af823d 100644
--- a/src/nm-fortisslvpn-service.c
+++ b/src/nm-fortisslvpn-service.c
@@ -210,6 +210,7 @@ run_openfortivpn (NMFortisslvpnPlugin *plugin, NMSettingVpn *s_vpn, GError **err
GPtrArray *argv;
const char *value;
gs_free char *str_tmp = NULL;
+ NMSettingIPConfig *ip4_config;
openfortivpn = nm_find_openfortivpn ();
if (!openfortivpn) {
@@ -229,6 +230,10 @@ run_openfortivpn (NMFortisslvpnPlugin *plugin, NMSettingVpn *s_vpn, GError **err
g_ptr_array_add (argv, (gpointer) g_strdup ("--no-routes"));
g_ptr_array_add (argv, (gpointer) g_strdup ("--no-dns"));
+ ip4_config = nm_connection_get_setting_ip4_config (priv->connection);
+ if (!nm_setting_ip_config_get_ignore_auto_dns (ip4_config)) {
+ g_ptr_array_add (argv, (gpointer) g_strdup ("--pppd-use-peerdns=1"));
+ }
value = nm_setting_vpn_get_data_item (s_vpn, NM_FORTISSLVPN_KEY_GATEWAY);
g_ptr_array_add (argv, (gpointer) g_strdup (value));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]