summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp
index 5ef2e7a..eb7f3f3 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -43,6 +43,9 @@ int main(int argc, char *argv[])
bindingAddress.setHost(QStringLiteral("localhost"));
bindingAddress.setPort(port);
bindingAddress.setPath(QStringLiteral("/api"));
+ QUrlQuery query;
+ query.addQueryItem(QStringLiteral("token"), token);
+ bindingAddress.setQuery(query);
}
fprintf(stderr, "[tbtnavi] app_name: %s, port: %d, token: %s.\n",
graphic_role.toStdString().c_str(),