Merge pull request #667 from AlecsFerra/patch-1

Update the heroku example to use 0.0.0.0 as ip

Former-commit-id: 8c2355a433
This commit is contained in:
Waffle Maybe 2022-06-29 17:24:15 +04:00 committed by GitHub
commit 0b78b2d315

View file

@ -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");