diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-08-20 14:54:31 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-08-20 20:27:49 +0200 |
commit | 339a30fd1917011d8ad8a3900509f3a8880d569d (patch) | |
tree | a6e519b135c43e09cdbbefc5103783c56a3c3cf0 /gui/main.cpp | |
parent | 30587fb27b73fdb3f0aab1a78844edcaaae1c3bb (diff) |
[feat] reset error
Diffstat (limited to 'gui/main.cpp')
-rw-r--r-- | gui/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gui/main.cpp b/gui/main.cpp index 2a300e2..e3b8530 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -144,9 +144,7 @@ int main(int argc, char **argv) { /* if requested, enable web api for controlling the VPN */ if (webAPI) { - char* wp = webPort.toLocal8Bit().data(); - GoString p = {wp, (long int)strlen(wp)}; - EnableWebAPI(p); + EnableWebAPI(toGoStr(webPort)); }; /* kick off your shoes, put your feet up */ |