diff options
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 9e79b039..ff6fc3c4 100644 --- a/src/service.c +++ b/src/service.c @@ -3115,7 +3115,10 @@ static DBusMessage *set_property(DBusConnection *conn, if (str == NULL) return __connman_error_invalid_arguments(msg); - index = connman_network_get_index(service->network); + if (service->type == CONNMAN_SERVICE_TYPE_VPN) + index = connman_provider_get_index(service->provider); + else + index = connman_network_get_index(service->network); gw = __connman_ipconfig_get_gateway_from_index(index, CONNMAN_IPCONFIG_TYPE_ALL); |