Skip to content

Commit

Permalink
update dnspod for request length (#272)
Browse files Browse the repository at this point in the history
default request length for dnspod is 3000

Co-authored-by: New Future <[email protected]>
  • Loading branch information
mao13820 and NewFuture authored Jul 21, 2021
1 parent 473034a commit 36f9c97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dns/dnspod.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class API:
METHOD = "POST" # 请求方法
TOKEN_PARAM = "login_token" # token参数
DEFAULT = "默认" # 默认线路名
LENGTH="length" #添加参数


def request(action, param=None, **params):
Expand All @@ -46,6 +47,7 @@ def request(action, param=None, **params):
params.update({API.TOKEN_PARAM: '***', 'format': 'json'})
info("%s/%s : %s", API.SITE, action, params)
params[API.TOKEN_PARAM] = "%s,%s" % (Config.ID, Config.TOKEN)
params[API.LENGTH] = "3000" #添加参数
if Config.PROXY:
conn = HTTPSConnection(Config.PROXY)
conn.set_tunnel(API.SITE, 443)
Expand Down

0 comments on commit 36f9c97

Please sign in to comment.