diff --git a/README.md b/README.md index 25f36e8..4bbdc5a 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,9 @@ HTTP proxy server for outgoing webhook requests in the format http://host:port allow the Bot API server to serve local requests +### `TELEGRAM_HTTP_IP_ADDRESS` + +Use the `TELEGRAM_HTTP_IP_ADDRESS: "[::]"` parameter to listen on the ipv6 intranet ## Start with persistent storage diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 8ef7b00..dd90962 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -37,6 +37,9 @@ fi if [ -n "$TELEGRAM_LOCAL" ]; then CUSTOM_ARGS="${CUSTOM_ARGS} --local" fi +if [ -n "$TELEGRAM_HTTP_IP_ADDRESS" ]; then + CUSTOM_ARGS="${CUSTOM_ARGS} --http-ip-address=$TELEGRAM_HTTP_IP_ADDRESS" +fi COMMAND="telegram-bot-api ${DEFAULT_ARGS}${CUSTOM_ARGS}"