diff options
author | Max Kellermann <max@musicpd.org> | 2019-07-03 21:53:42 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-07-03 21:53:42 +0200 |
commit | 2700265769dda0cc208d2e85fa863006e7f27468 (patch) | |
tree | a52d5d51cb030aaceaab7ea28bbb219c1d86cf8f /src/net | |
parent | 557098644b2315df6ccec1a192d02e317b7e50b4 (diff) |
net/SocketAddress: use IPv[46]Address::Cast()
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/SocketAddress.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/SocketAddress.cxx b/src/net/SocketAddress.cxx index 2e30e33c3..fd0154833 100644 --- a/src/net/SocketAddress.cxx +++ b/src/net/SocketAddress.cxx @@ -95,13 +95,13 @@ SocketAddress::GetLocalPath() const noexcept bool SocketAddress::IsV6Any() const noexcept { - return GetFamily() == AF_INET6 && IPv6Address(*this).IsAny(); + return GetFamily() == AF_INET6 && IPv6Address::Cast(*this).IsAny(); } bool SocketAddress::IsV4Mapped() const noexcept { - return GetFamily() == AF_INET6 && IPv6Address(*this).IsV4Mapped(); + return GetFamily() == AF_INET6 && IPv6Address::Cast(*this).IsV4Mapped(); } unsigned @@ -112,10 +112,10 @@ SocketAddress::GetPort() const noexcept switch (GetFamily()) { case AF_INET: - return IPv4Address(*this).GetPort(); + return IPv4Address::Cast(*this).GetPort(); case AF_INET6: - return IPv6Address(*this).GetPort(); + return IPv6Address::Cast(*this).GetPort(); default: return 0; |