Merge pull request #7 from InPRTx/add-http-ip-address

Added TELEGRAM_HTTP_IP_ADDRESS
This commit is contained in:
Alex Root Junior 2023-02-25 18:15:35 +02:00 committed by GitHub
commit d361401aee
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
### `TELEGRAM_HTTP_IP_ADDRESS`
Use the `TELEGRAM_HTTP_IP_ADDRESS: "[::]"` parameter to listen on the ipv6 intranet
## Start with persistent storage

View File

@ -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}"