summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-02 21:57:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-02 22:00:37 +0300
commiteca890c92d3b43b8aae5f2c53cab49612f5efd1d (patch)
tree8acbdfe972044adcfbcc5a6bf7ea28b4bbb54382 /src/net/serverinfo.h
parent520a495c466793c29f3e721634dfe6cc616b8ede (diff)
downloadmanaplus-eca890c92d3b43b8aae5f2c53cab49612f5efd1d.tar.gz
manaplus-eca890c92d3b43b8aae5f2c53cab49612f5efd1d.tar.bz2
manaplus-eca890c92d3b43b8aae5f2c53cab49612f5efd1d.tar.xz
manaplus-eca890c92d3b43b8aae5f2c53cab49612f5efd1d.zip
Add option "use same ip" for each server.
By default all servers using same ip for subservers.
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r--src/net/serverinfo.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index 899400598..b2cd652bb 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -55,8 +55,8 @@ public:
std::string supportUrl;
uint16_t port;
VersionString version;
-
bool save;
+ bool persistentIp;
ServerInfo() :
type(TMWATHENA),
@@ -69,7 +69,8 @@ public:
supportUrl(),
port(6901),
version(),
- save(false)
+ save(false),
+ persistentIp(true)
{
version.first = 0;
}
@@ -85,7 +86,8 @@ public:
supportUrl(info.supportUrl),
port(info.port),
version(),
- save(info.save)
+ save(info.save),
+ persistentIp(info.persistentIp)
{
version.first = info.version.first;
version.second = info.version.second;
@@ -110,6 +112,7 @@ public:
version.first = 0;
version.second.clear();
save = false;
+ persistentIp = true;
}
bool operator==(const ServerInfo &other) const