Skip to content

Commit

Permalink
AK: Add default ports for Websockets to the URL class
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexesttp authored and awesomekling committed Apr 18, 2021
1 parent 4c1d4ba commit 8e44a0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AK/URL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8e44a0b

Please sign in to comment.