From: Pasi Sjöholm <pasi.sjoh...@jollamobile.com> Reset ipv4/6_method accordingly after disconnecting as next active connection might not have the same protocols in use. --- plugins/ofono.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/plugins/ofono.c b/plugins/ofono.c index fa3cfc2..8821f1e 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -331,9 +331,11 @@ static void set_disconnected(struct modem_data *modem) if (modem->context) { g_free(modem->context->ipv4_nameservers); modem->context->ipv4_nameservers = NULL; + modem->context->ipv4_method = CONNMAN_IPCONFIG_METHOD_UNKNOWN; g_free(modem->context->ipv6_nameservers); modem->context->ipv6_nameservers = NULL; + modem->context->ipv6_method = CONNMAN_IPCONFIG_METHOD_UNKNOWN; } } -- 2.1.0 _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman