From 6d805d094c2c6293c75bfdd00dcfc0d0d23ee7f5 Mon Sep 17 00:00:00 2001 From: Konstantin Bogdanov Date: Fri, 26 Apr 2024 19:37:14 +0200 Subject: [PATCH] Fix harder --- src/Server/GRPCServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Server/GRPCServer.cpp b/src/Server/GRPCServer.cpp index 32093aec0c0..394bb4722f8 100644 --- a/src/Server/GRPCServer.cpp +++ b/src/Server/GRPCServer.cpp @@ -336,9 +336,10 @@ namespace auto prefix = ipv4 ? ipv4_prefix : ipv6_prefix; auto family = ipv4 ? Poco::Net::AddressFamily::Family::IPv4 : Poco::Net::AddressFamily::Family::IPv6; + uri_encoded_peer= uri_encoded_peer.substr(prefix.length()); + String peer; Poco::URI::decode(uri_encoded_peer, peer); - peer = peer.substr(prefix.length()); return Poco::Net::SocketAddress{family, peer}; }