From dbd1a539f6d39b9d1f656d815ef9715778411a02 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 8 Sep 2014 16:15:05 +0200 Subject: [PATCH] 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. --- panels/network/cc-network-panel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c index fe177182e..01fe0a95f 100644 --- a/panels/network/cc-network-panel.c +++ b/panels/network/cc-network-panel.c @@ -714,6 +714,9 @@ panel_add_device (CcNetworkPanel *panel, NMDevice *device) /* Don't add the libvirtd bridge to the UI */ if (g_strrstr (udi, "/virbr0") != NULL) goto out; + /* Don't add VPN devices either */ + if (g_strrstr (udi, "/tun0") != NULL) + goto out; type = nm_device_get_device_type (device);