mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
AK: Add default ports for Websockets to the URL class
This commit is contained in:
parent
4c1d4baada
commit
8e44a0bd46
|
@ -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…
Reference in a new issue