mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 03:45:23 +00:00
enable IPv6
This commit is contained in:
parent
5b22ce9562
commit
a215bcf245
@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
__author__ = "Benny <benny.think@gmail.com>"
|
__author__ = "Benny <benny.think@gmail.com>"
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
from pyrogram import Client
|
from pyrogram import Client
|
||||||
|
|
||||||
from config import APP_HASH, APP_ID, PYRO_WORKERS, TOKEN
|
from config import APP_HASH, APP_ID, PYRO_WORKERS, TOKEN
|
||||||
@ -15,6 +17,7 @@ from config import APP_HASH, APP_ID, PYRO_WORKERS, TOKEN
|
|||||||
def create_app(session="ytdl", workers=PYRO_WORKERS):
|
def create_app(session="ytdl", workers=PYRO_WORKERS):
|
||||||
_app = Client(session, APP_ID, APP_HASH,
|
_app = Client(session, APP_ID, APP_HASH,
|
||||||
bot_token=TOKEN, workers=workers,
|
bot_token=TOKEN, workers=workers,
|
||||||
|
ipv6=os.getenv("ipv6", False),
|
||||||
# proxy={"hostname": "host.docker.internal", "port": 1080}
|
# proxy={"hostname": "host.docker.internal", "port": 1080}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user