mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
AK: Add default ports for Websockets to the URL class
This commit is contained in:
parent
4c1d4baada
commit
8e44a0bd46
1 changed files with 4 additions and 0 deletions
|
@ -441,6 +441,10 @@ u16 URL::default_port_for_protocol(const String& protocol)
|
|||
return 6667;
|
||||
if (protocol == "ircs")
|
||||
return 6697;
|
||||
if (protocol == "ws")
|
||||
return 80;
|
||||
if (protocol == "wss")
|
||||
return 443;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue