Skip to content

Commit

Permalink
Use 127.0.0.1 because Windows needs 300ms to resolve localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Colucci committed Apr 16, 2019
1 parent a1b0dee commit a6ec49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Common/ESDConnectionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void ESDConnectionManager::Run()
mWebsocket.set_message_handler(websocketpp::lib::bind(&ESDConnectionManager::OnMessage, this, websocketpp::lib::placeholders::_1, websocketpp::lib::placeholders::_2));

websocketpp::lib::error_code ec;
std::string uri = "ws://localhost:" + std::to_string(mPort);
std::string uri = "ws://127.0.0.1:" + std::to_string(mPort);
WebsocketClient::connection_ptr connection = mWebsocket.get_connection(uri, ec);
if (ec)
{
Expand Down

0 comments on commit a6ec49d

Please sign in to comment.