mirror of
https://github.com/PaiGramTeam/telegram-bot-api-build.git
synced 2024-11-26 01:40:48 +00:00
Merge pull request #7 from InPRTx/add-http-ip-address
Added TELEGRAM_HTTP_IP_ADDRESS
This commit is contained in:
commit
d361401aee
@ -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
|
||||||
|
|
||||||
|
@ -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}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user