summaryrefslogtreecommitdiff
path: root/src/network/core/address.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/core/address.cpp')
-rw-r--r--src/network/core/address.cpp4
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) {