diff --git a/src/net/SocketAddress.hxx b/src/net/SocketAddress.hxx index ac934e431..6a75352ac 100644 --- a/src/net/SocketAddress.hxx +++ b/src/net/SocketAddress.hxx @@ -74,7 +74,7 @@ public: return address == nullptr; } - const struct sockaddr *GetAddress() const noexcept { + constexpr const struct sockaddr *GetAddress() const noexcept { return address; }