diff --git a/src/net/StaticSocketAddress.hxx b/src/net/StaticSocketAddress.hxx index 3557f5eb6..b7b3f2c73 100644 --- a/src/net/StaticSocketAddress.hxx +++ b/src/net/StaticSocketAddress.hxx @@ -116,6 +116,11 @@ public: bool SetPort(unsigned port) noexcept; #endif + [[gnu::pure]] + std::span GetSteadyPart() const noexcept { + return SocketAddress{*this}.GetSteadyPart(); + } + [[gnu::pure]] bool operator==(SocketAddress other) const noexcept { return (SocketAddress)*this == other;