From 5e8682da8c7fe2817affe989cf007229e51b9f99 Mon Sep 17 00:00:00 2001 From: Alessio <35380179+AlecsFerra@users.noreply.github.com> Date: Wed, 29 Jun 2022 15:10:45 +0200 Subject: [PATCH] Update the heroku example to use 0.0.0.0 as ip On heroku we canno't bind on 127.0.0.1 Former-commit-id: c95203759a00b6da9bad84fe8c7309edcea7ecea --- examples/heroku_ping_pong.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/heroku_ping_pong.rs b/examples/heroku_ping_pong.rs index 72ff8034..8238dd9a 100644 --- a/examples/heroku_ping_pong.rs +++ b/examples/heroku_ping_pong.rs @@ -37,7 +37,7 @@ async fn main() { .parse() .expect("PORT env variable value is not an integer"); - let addr = ([127, 0, 0, 1], port).into(); + let addr = ([0, 0, 0, 0], port).into(); // Heroku host example: "heroku-ping-pong-bot.herokuapp.com" let host = env::var("HOST").expect("HOST env variable is not set");