vpn: it is not a problem to flush IPv6 routes

Whether they are supported or not. We already remove all addressess.
This commit is contained in:
Pavel Šimerda 2013-01-23 09:07:17 +01:00
parent a2462ed2f6
commit f84b18d1d5

View file

@ -166,8 +166,7 @@ vpn_cleanup (NMVPNConnection *connection)
if (priv->ip_ifindex) {
nm_system_iface_set_up (priv->ip_ifindex, FALSE, NULL);
/* FIXME: use AF_UNSPEC here when we have IPv6 support */
nm_system_iface_flush_routes (priv->ip_ifindex, AF_INET);
nm_system_iface_flush_routes (priv->ip_ifindex, AF_UNSPEC);
nm_system_iface_flush_addresses (priv->ip_ifindex, AF_UNSPEC);
}