Add FQDN support in the Connection Editor
Make the Connection Editor accept things that basically look like FQDNs Add quotation around the connection ID for wg-quick up/down Move the is_empty function to shared/
This commit is contained in:
1 parent
317e741e86
commit
013c65096c
4 files changed
+108
-21
No files matched your search
@@ -186,7 +186,7 @@ wg_disconnect(NMVpnServicePlugin *plugin,
|
||||
g_chmod(filename, 0400);
|
||||
|
||||
// join together our command
|
||||
command = g_strdup_printf("%s down %s", wg_quick_path, filename);
|
||||
command = g_strdup_printf("%s down '%s'", wg_quick_path, filename);
|
||||
|
||||
if(!g_spawn_command_line_sync(command, NULL, NULL, &retcode, error)){
|
||||
_LOGW("An error occured while spawning wg-quick! (Error: %s)", (*error)->message);
|
||||
@@ -474,7 +474,7 @@ connect_common(NMVpnServicePlugin *plugin,
|
||||
g_chmod(filename, 0400);
|
||||
|
||||
// join together our command
|
||||
command = g_strdup_printf("%s up %s", wg_quick_path, filename);
|
||||
command = g_strdup_printf("%s up '%s'", wg_quick_path, filename);
|
||||
|
||||
if(!g_spawn_command_line_sync(command, NULL, NULL, &retcode, error)){
|
||||
_LOGW("An error occured while spawning wg-quick! (Error: %s)", (*error)->message);
|
||||
|
||||
Reference in new issue
Block a user