summaryrefslogtreecommitdiff
path: root/gui/main.cpp
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-08-20 14:54:31 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-08-20 20:27:49 +0200
commit339a30fd1917011d8ad8a3900509f3a8880d569d (patch)
treea6e519b135c43e09cdbbefc5103783c56a3c3cf0 /gui/main.cpp
parent30587fb27b73fdb3f0aab1a78844edcaaae1c3bb (diff)
[feat] reset error
Diffstat (limited to 'gui/main.cpp')
-rw-r--r--gui/main.cpp4
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 */