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:
parent
e46c83a078
commit
dbd1a539f6
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue