[PATCH] openvpn: lack of ipv4 config on tap interface is not fatal
- From: Rafaël Carré <funman videolan org>
- To: networkmanager-list gnome org
- Subject: [PATCH] openvpn: lack of ipv4 config on tap interface is not fatal
- Date: Tue, 3 Nov 2015 19:31:11 +0100
IPv4 config can be set manually
---
src/nm-openvpn-service-openvpn-helper.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/nm-openvpn-service-openvpn-helper.c b/src/nm-openvpn-service-openvpn-helper.c
index 512d6ce..4f93193 100644
--- a/src/nm-openvpn-service-openvpn-helper.c
+++ b/src/nm-openvpn-service-openvpn-helper.c
@@ -583,13 +583,10 @@ main (int argc, char *argv[])
if (tmp && inet_pton (AF_INET, tmp, &temp_addr) > 0) {
val = g_variant_new_uint32 (nm_utils_ip4_netmask_to_prefix (temp_addr.s_addr));
g_variant_builder_add (&ip4builder, "{sv}", NM_VPN_PLUGIN_IP4_CONFIG_PREFIX, val);
- } else if (!tapdev) {
- if (!has_ip4_prefix) {
- val = g_variant_new_uint32 (32);
- g_variant_builder_add (&ip4builder, "{sv}", NM_VPN_PLUGIN_IP4_CONFIG_PREFIX, val);
- }
- } else
- g_warning ("No IP4 netmask/prefix (missing or invalid 'ifconfig_netmask')");
+ } else if (!has_ip4_prefix) {
+ val = g_variant_new_uint32 (32);
+ g_variant_builder_add (&ip4builder, "{sv}", NM_VPN_PLUGIN_IP4_CONFIG_PREFIX, val);
+ }
val = get_ip4_routes ();
if (val)
--
2.5.0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]