fix default addresses

This commit is contained in:
Andrei Yankovich 2021-01-27 22:00:14 +03:00
parent 487ef090ea
commit 92e02b5f83
6 changed files with 7 additions and 7 deletions

View File

@ -9,4 +9,7 @@
# define HANOITOWERSPROTOCOL_EXPORT Q_DECL_IMPORT
#endif
#define DEFAULT_HANOI_ADDRESS "127.0.0.1" //"quasarapp.ddns.net"
#define DEFAULT_HANOI_PORT 7770
#endif // HANOITOWERSPROTOCOL_GLOBAL_H

View File

@ -18,7 +18,7 @@
#include "hanoierrorcodes.h"
HanoiServer::HanoiServer() {
QString address = DEFAULT_ADDRESS;
QString address = "";
unsigned short port = DEFAULT_HANOI_PORT;
if (QuasarAppUtils::Params::isEndable("address")) {

View File

@ -1,9 +1,6 @@
#ifndef SNAKESERVER_H
#define SNAKESERVER_H
#define DEFAULT_ADDRESS ""
#define DEFAULT_HANOI_PORT 7770
#include <quasarapp.h>
#include <singleserver.h>

View File

@ -83,6 +83,8 @@ BackEnd::BackEnd(QQmlApplicationEngine *engine):
setProfile(_settings->getStrValue(CURRENT_PROFILE_KEY, DEFAULT_USER_ID));
init();
_client->connectToServer(QH::HostAddress{DEFAULT_HANOI_ADDRESS, DEFAULT_HANOI_PORT});
}
void BackEnd::init() {

View File

@ -27,8 +27,6 @@ HanoiClient::HanoiClient() {
initSqlDb("",
new QH::SqlDB(),
new QH::SqlDBWriter());
}
QH::ParserResult HanoiClient::parsePackage(const QH::Package &pkg,

2
Heart

@ -1 +1 @@
Subproject commit 19e5bcff929268ac54eb7534a826e3879c31fcc6
Subproject commit c7c2cea9af87fb818e8f09de8b80d0a5cbdaf709