From 5908205a62eb160af745039b9ce0aa5329f984ba Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 11 Apr 2023 07:48:30 +0200 Subject: Use `127.0.0.1` instead of `localhost` in `websocket` example --- examples/websocket/src/echo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/websocket/src') diff --git a/examples/websocket/src/echo.rs b/examples/websocket/src/echo.rs index 4fabb660..f6c46e95 100644 --- a/examples/websocket/src/echo.rs +++ b/examples/websocket/src/echo.rs @@ -22,7 +22,7 @@ pub fn connect() -> Subscription { loop { match &mut state { State::Disconnected => { - const ECHO_SERVER: &str = "ws://localhost:3030"; + const ECHO_SERVER: &str = "ws://127.0.0.1:3030"; match async_tungstenite::tokio::connect_async( ECHO_SERVER, -- cgit