network: Don't show underlying device for VPN connections

We don't need to see "tun0" with its IP address in there, separate
from the VPN configuration.
This commit is contained in:
Bastien Nocera 2014-09-08 16:15:05 +02:00
parent e46c83a078
commit dbd1a539f6

View file

@ -714,6 +714,9 @@ panel_add_device (CcNetworkPanel *panel, NMDevice *device)
/* Don't add the libvirtd bridge to the UI */ /* Don't add the libvirtd bridge to the UI */
if (g_strrstr (udi, "/virbr0") != NULL) if (g_strrstr (udi, "/virbr0") != NULL)
goto out; goto out;
/* Don't add VPN devices either */
if (g_strrstr (udi, "/tun0") != NULL)
goto out;
type = nm_device_get_device_type (device); type = nm_device_get_device_type (device);