add TELEGRAM_HTTP_IP_ADDRESS

This commit is contained in:
InPRTx 2023-02-15 18:50:45 +08:00 committed by GitHub
parent 171f042580
commit 2899471a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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 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 ## Start with persistent storage

View File

@ -37,6 +37,9 @@ fi
if [ -n "$TELEGRAM_LOCAL" ]; then if [ -n "$TELEGRAM_LOCAL" ]; then
CUSTOM_ARGS="${CUSTOM_ARGS} --local" CUSTOM_ARGS="${CUSTOM_ARGS} --local"
fi 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}" COMMAND="telegram-bot-api ${DEFAULT_ARGS}${CUSTOM_ARGS}"