2008-10-11 Dan Williams <dcbw@redhat.com>
* src/nm-openvpn-service-openvpn-helper.c - (main): handle route_vpn_gateway (requires NM svn r4169) (bgo #549196) git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4170 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2008-10-11 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/nm-openvpn-service-openvpn-helper.c
|
||||
- (main): handle route_vpn_gateway (requires NM svn r4169) (bgo #549196)
|
||||
|
||||
2008-09-30 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* properties/nm-openvpn-dialog.glade
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* -*- Mode: C; tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
||||
/* nm-openvpn-service-openvpn-helper - helper called after OpenVPN established
|
||||
* a connection, uses DBUS to send information back to nm-openvpn-service
|
||||
*
|
||||
@@ -298,13 +298,18 @@ main (int argc, char *argv[])
|
||||
|
||||
config = g_hash_table_new (g_str_hash, g_str_equal);
|
||||
|
||||
/* Gateway */
|
||||
/* External world-visible VPN gateway */
|
||||
val = addr_to_gvalue (getenv ("trusted_ip"));
|
||||
if (val)
|
||||
g_hash_table_insert (config, NM_VPN_PLUGIN_IP4_CONFIG_GATEWAY, val);
|
||||
g_hash_table_insert (config, NM_VPN_PLUGIN_IP4_CONFIG_EXT_GATEWAY, val);
|
||||
else
|
||||
helper_failed (connection, "VPN Gateway");
|
||||
|
||||
/* Internal VPN subnet gateway */
|
||||
val = addr_to_gvalue (getenv ("route_vpn_gateway"));
|
||||
if (val)
|
||||
g_hash_table_insert (config, NM_VPN_PLUGIN_IP4_CONFIG_INT_GATEWAY, val);
|
||||
|
||||
/* Tunnel device */
|
||||
val = str_to_gvalue (getenv ("dev"), FALSE);
|
||||
if (val)
|
||||
|
Reference in New Issue
Block a user