Fix harder

This commit is contained in:
Konstantin Bogdanov 2024-04-26 19:37:14 +02:00
parent 4c607147ba
commit 6d805d094c
Signed by: thevar1able
GPG Key ID: DB399448D9FE52F1

View File

@ -336,9 +336,10 @@ namespace
auto prefix = ipv4 ? ipv4_prefix : ipv6_prefix; auto prefix = ipv4 ? ipv4_prefix : ipv6_prefix;
auto family = ipv4 ? Poco::Net::AddressFamily::Family::IPv4 : Poco::Net::AddressFamily::Family::IPv6; auto family = ipv4 ? Poco::Net::AddressFamily::Family::IPv4 : Poco::Net::AddressFamily::Family::IPv6;
uri_encoded_peer= uri_encoded_peer.substr(prefix.length());
String peer; String peer;
Poco::URI::decode(uri_encoded_peer, peer); Poco::URI::decode(uri_encoded_peer, peer);
peer = peer.substr(prefix.length());
return Poco::Net::SocketAddress{family, peer}; return Poco::Net::SocketAddress{family, peer};
} }