diff options
Diffstat (limited to 'vpn/main.c')
-rw-r--r-- | vpn/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -126,6 +126,7 @@ static gchar *option_plugin = NULL; static gchar *option_noplugin = NULL; static gboolean option_detach = TRUE; static gboolean option_version = FALSE; +static gboolean option_routes = FALSE; static gboolean parse_debug(const char *key, const char *value, gpointer user_data, GError **error) @@ -149,6 +150,8 @@ static GOptionEntry options[] = { { "nodaemon", 'n', G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &option_detach, "Don't fork daemon to background" }, + { "routes", 'r', 0, G_OPTION_ARG_NONE, &option_routes, + "Create/delete VPN routes" }, { "version", 'v', 0, G_OPTION_ARG_NONE, &option_version, "Show version information and exit" }, { NULL }, @@ -223,7 +226,7 @@ int main(int argc, char *argv[]) __connman_log_init(argv[0], option_debug, option_detach, FALSE, "Connection Manager VPN daemon", VERSION); __connman_dbus_init(conn); - __vpn_provider_init(); + __vpn_provider_init(option_routes); __vpn_manager_init(); __vpn_ipconfig_init(); __vpn_rtnl_init(); |