summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWebSocket/Impl/TCPWebSocketConnectionImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWebSocket/Impl/TCPWebSocketConnectionImpl.cpp')
-rw-r--r--Userland/Libraries/LibWebSocket/Impl/TCPWebSocketConnectionImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWebSocket/Impl/TCPWebSocketConnectionImpl.cpp b/Userland/Libraries/LibWebSocket/Impl/TCPWebSocketConnectionImpl.cpp
index db25972710..709f28fc7f 100644
--- a/Userland/Libraries/LibWebSocket/Impl/TCPWebSocketConnectionImpl.cpp
+++ b/Userland/Libraries/LibWebSocket/Impl/TCPWebSocketConnectionImpl.cpp
@@ -34,7 +34,7 @@ void TCPWebSocketConnectionImpl::connect(ConnectionInfo const& connection)
m_socket->on_connected = [this] {
on_connected();
};
- bool success = m_socket->connect(connection.url().host(), connection.url().port());
+ bool success = m_socket->connect(connection.url().host(), connection.url().port_or_default());
if (!success) {
deferred_invoke([this] {
on_connection_error();