From 2a206ef309b683650998929bf4f93ac004064e64 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Apr 2024 16:33:48 +0200 Subject: [PATCH] net/StaticSocketAddress: add method GetLocalPath() --- src/net/StaticSocketAddress.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/net/StaticSocketAddress.hxx b/src/net/StaticSocketAddress.hxx index 2c040c508..28398f37d 100644 --- a/src/net/StaticSocketAddress.hxx +++ b/src/net/StaticSocketAddress.hxx @@ -104,6 +104,14 @@ public: */ [[gnu::pure]] std::string_view GetLocalRaw() const noexcept; + + /** + * @see SocketAddress::GetLocalPath() + */ + [[nodiscard]] [[gnu::pure]] + const char *GetLocalPath() const noexcept { + return static_cast(*this).GetLocalPath(); + } #endif #ifdef HAVE_TCP