diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-01 19:35:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-01 19:35:16 +0300 |
commit | cce216b983ed4e36869046e7c537f47d34734340 (patch) | |
tree | a2fc63de315aa5d835357fb353c7cde5ad991a48 /src/net/serverinfo.h | |
parent | 49f27fffbe07e66a3047812a838f03d7636cc4a9 (diff) | |
download | mv-cce216b983ed4e36869046e7c537f47d34734340.tar.gz mv-cce216b983ed4e36869046e7c537f47d34734340.tar.bz2 mv-cce216b983ed4e36869046e7c537f47d34734340.tar.xz mv-cce216b983ed4e36869046e7c537f47d34734340.zip |
Add alternate host name to servers list.
First try will be by hostname, if it failed in name resolution
will be used alt host name
This allow connect to server with static ip address even if dns is broken.
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r-- | src/net/serverinfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h index df7a854e7..515595f1f 100644 --- a/src/net/serverinfo.h +++ b/src/net/serverinfo.h @@ -49,6 +49,7 @@ public: Type type; std::string name; std::string hostname; + std::string althostname; uint16_t port; std::string description; @@ -62,6 +63,7 @@ public: type(TMWATHENA), name(), hostname(), + althostname(), port(6901), description(), registerUrl(), @@ -76,6 +78,7 @@ public: type(info.type), name(info.name), hostname(info.hostname), + althostname(info.althostname), port(info.port), description(info.description), registerUrl(info.registerUrl), @@ -97,6 +100,7 @@ public: type = UNKNOWN; name.clear(); hostname.clear(); + althostname.clear(); port = 0; description.clear(); registerUrl.clear(); |