mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-20 13:59:00 +01:00
Update the heroku example to use 0.0.0.0 as ip
On heroku we canno't bind on 127.0.0.1
This commit is contained in:
parent
1c6b35a443
commit
c95203759a
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ async fn main() {
|
||||||
.parse()
|
.parse()
|
||||||
.expect("PORT env variable value is not an integer");
|
.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"
|
// Heroku host example: "heroku-ping-pong-bot.herokuapp.com"
|
||||||
let host = env::var("HOST").expect("HOST env variable is not set");
|
let host = env::var("HOST").expect("HOST env variable is not set");
|
||||||
|
|
Loading…
Add table
Reference in a new issue