mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
AK: Add default ports for Websockets to the URL class
This commit is contained in:
parent
4c1d4baada
commit
8e44a0bd46
Notes:
sideshowbarker
2024-07-18 19:25:14 +09:00
Author: https://github.com/Dexesttp
Commit: 8e44a0bd46
Pull-request: https://github.com/SerenityOS/serenity/pull/6420
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
1 changed files with 4 additions and 0 deletions
|
@ -441,6 +441,10 @@ u16 URL::default_port_for_protocol(const String& protocol)
|
||||||
return 6667;
|
return 6667;
|
||||||
if (protocol == "ircs")
|
if (protocol == "ircs")
|
||||||
return 6697;
|
return 6697;
|
||||||
|
if (protocol == "ws")
|
||||||
|
return 80;
|
||||||
|
if (protocol == "wss")
|
||||||
|
return 443;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue