From 2899471a0f87200d8b869e502e65d35a0c01b623 Mon Sep 17 00:00:00 2001 From: InPRTx Date: Wed, 15 Feb 2023 18:50:45 +0800 Subject: [PATCH] add TELEGRAM_HTTP_IP_ADDRESS --- README.md | 3 +++ docker-entrypoint.sh | 3 +++ 2 files changed, 6 insertions(+) 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}"