diff options
| author | Michael Biebl <biebl@debian.org> | 2018-07-25 13:12:18 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-07-25 13:12:18 +0200 |
| commit | caf1db9d6fbc056cc6c76a24574890f6c7895f3d (patch) | |
| tree | c323cf856ee0bb8e44590670dd54c19653a55748 /src/nm-manager.c | |
| parent | 429393567647935d9123e21fd27a7529d50255eb (diff) | |
New upstream version 1.12.2 upstream/1.12.2
Diffstat (limited to 'src/nm-manager.c')
| -rw-r--r-- | src/nm-manager.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c index 0fea13de..289dcf83 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -4611,21 +4611,7 @@ validate_activation_request (NMManager *self, } } - if (is_vpn && device) { - /* VPN's are treated specially. Maybe the should accept a device as well, - * however, later on during activation, we don't handle the device. - * - * Maybe we should, and maybe it makes sense to specify a device - * when activating a VPN. But for now, just error out. */ - g_set_error_literal (error, - NM_MANAGER_ERROR, - NM_MANAGER_ERROR_UNKNOWN_DEVICE, - "Cannot specify device when activating VPN"); - return NULL; - } - - nm_assert ( ( is_vpn && !device) - || (!is_vpn && NM_IS_DEVICE (device))); + nm_assert (is_vpn || NM_IS_DEVICE (device)); *out_device = device; *out_is_vpn = is_vpn; |