mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
RequestServer: Remove check for square brackets in websocket_connect
This is no longer necessary since commit:
6480e1a3fe
This commit is contained in:
parent
948349974c
commit
f39d14fa8a
Notes:
github-actions[bot]
2025-04-08 07:14:54 +00:00
Author: https://github.com/rmg-x Commit: https://github.com/LadybirdBrowser/ladybird/commit/f39d14fa8ae Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4277 Reviewed-by: https://github.com/gmta ✅
1 changed files with 0 additions and 4 deletions
|
@ -715,10 +715,6 @@ void ConnectionFromClient::websocket_connect(i64 websocket_id, URL::URL url, Byt
|
|||
{
|
||||
auto host = url.serialized_host().to_byte_string();
|
||||
|
||||
// Check if host has the bracket notation for IPV6 addresses and remove them
|
||||
if (host.starts_with("["sv) && host.ends_with("]"sv))
|
||||
host = host.substring(1, host.length() - 2);
|
||||
|
||||
m_resolver->dns.lookup(host, DNS::Messages::Class::IN, { DNS::Messages::ResourceType::A, DNS::Messages::ResourceType::AAAA })
|
||||
->when_rejected([this, websocket_id](auto const& error) {
|
||||
dbgln("WebSocketConnect: DNS lookup failed: {}", error);
|
||||
|
|
Loading…
Add table
Reference in a new issue