mirror of
https://github.com/QuasarApp/Hanoi-Towers.git
synced 2025-04-27 18:24:31 +00:00
fix default addresses
This commit is contained in:
parent
487ef090ea
commit
92e02b5f83
@ -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
|
||||
|
@ -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")) {
|
||||
|
@ -1,9 +1,6 @@
|
||||
#ifndef SNAKESERVER_H
|
||||
#define SNAKESERVER_H
|
||||
|
||||
#define DEFAULT_ADDRESS ""
|
||||
#define DEFAULT_HANOI_PORT 7770
|
||||
|
||||
#include <quasarapp.h>
|
||||
#include <singleserver.h>
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -27,8 +27,6 @@ HanoiClient::HanoiClient() {
|
||||
initSqlDb("",
|
||||
new QH::SqlDB(),
|
||||
new QH::SqlDBWriter());
|
||||
|
||||
|
||||
}
|
||||
|
||||
QH::ParserResult HanoiClient::parsePackage(const QH::Package &pkg,
|
||||
|
2
Heart
2
Heart
@ -1 +1 @@
|
||||
Subproject commit 19e5bcff929268ac54eb7534a826e3879c31fcc6
|
||||
Subproject commit c7c2cea9af87fb818e8f09de8b80d0a5cbdaf709
|
Loading…
x
Reference in New Issue
Block a user