diff options
author | 2023-04-11 07:48:30 +0200 | |
---|---|---|
committer | 2023-04-11 07:48:30 +0200 | |
commit | 5908205a62eb160af745039b9ce0aa5329f984ba (patch) | |
tree | 740ffdc27b584401eb0e8e18b1b27e19cae58a6b /examples/websocket | |
parent | ae7e6b3d481e420acf981fabbeff9745d4b5347d (diff) | |
download | iced-5908205a62eb160af745039b9ce0aa5329f984ba.tar.gz iced-5908205a62eb160af745039b9ce0aa5329f984ba.tar.bz2 iced-5908205a62eb160af745039b9ce0aa5329f984ba.zip |
Use `127.0.0.1` instead of `localhost` in `websocket` example
Diffstat (limited to 'examples/websocket')
-rw-r--r-- | examples/websocket/src/echo.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Event> { 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, |