summaryrefslogtreecommitdiffstats
path: root/examples/websocket
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-11 07:48:30 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-11 07:48:30 +0200
commit5908205a62eb160af745039b9ce0aa5329f984ba (patch)
tree740ffdc27b584401eb0e8e18b1b27e19cae58a6b /examples/websocket
parentae7e6b3d481e420acf981fabbeff9745d4b5347d (diff)
downloadiced-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.rs2
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,