diff options
author | rubidium <rubidium@openttd.org> | 2009-04-08 17:51:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-08 17:51:04 +0000 |
commit | 080095ade5e6dc330529ff01d66c14c844aa7005 (patch) | |
tree | 4e05169cad087736da37833cbbd06e8d61b41a6f /src/network/core/address.cpp | |
parent | cd8da0d69eaec81702ca033f375957bb24acdbf1 (diff) | |
download | openttd-080095ade5e6dc330529ff01d66c14c844aa7005.tar.xz |
(svn r15984) -Codechange: prepare the UDP receiver to process multiple types of returned server lists.
Diffstat (limited to 'src/network/core/address.cpp')
-rw-r--r-- | src/network/core/address.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/core/address.cpp b/src/network/core/address.cpp index 963a2e970..d14d1dab6 100644 --- a/src/network/core/address.cpp +++ b/src/network/core/address.cpp @@ -58,9 +58,9 @@ const char *NetworkAddress::GetAddressAsString(bool with_family) /* 6 = for the : and 5 for the decimal port number */ static char buf[NETWORK_HOSTNAME_LENGTH + 6 + 7]; char *p = buf; - if (this->address.ss_family == AF_INET6) p = strecpy(p, "[", lastof(buf)); + if (this->GetAddress()->ss_family == AF_INET6) p = strecpy(p, "[", lastof(buf)); p = strecpy(p, this->GetHostname(), lastof(buf)); - if (this->address.ss_family == AF_INET6) p = strecpy(p, "]", lastof(buf)); + if (this->GetAddress()->ss_family == AF_INET6) p = strecpy(p, "]", lastof(buf)); p += seprintf(p, lastof(buf), ":%d", this->GetPort()); if (with_family) { |