mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Fix harder
This commit is contained in:
parent
4c607147ba
commit
6d805d094c
@ -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};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user