Add default port

This commit is contained in:
Kevin Yue
2020-02-20 20:42:51 +08:00
parent 02d78d7607
commit a3a1cf24d6
2 changed files with 5 additions and 1 deletions

View File

@@ -3,6 +3,10 @@
int main(int argc, char *argv[])
{
QString port = QString::fromLocal8Bit(qgetenv(ENV_CDP_PORT));
if (port == "") {
qputenv(ENV_CDP_PORT, "12315");
}
SingleApplication app(argc, argv);
GPClient w;
w.show();