diff --git a/src/net/StaticSocketAddress.hxx b/src/net/StaticSocketAddress.hxx index 2305379aa..74427c61e 100644 --- a/src/net/StaticSocketAddress.hxx +++ b/src/net/StaticSocketAddress.hxx @@ -56,6 +56,14 @@ public: size); } + operator struct sockaddr *() noexcept { + return reinterpret_cast(&address); + } + + operator const struct sockaddr *() const noexcept { + return reinterpret_cast(&address); + } + struct sockaddr *GetAddress() noexcept { return reinterpret_cast(&address); }