mirror of
https://github.com/NewFuture/DDNS.git
synced 2022-04-19 20:24:44 +00:00
update dnspod for request length (#272)
default request length for dnspod is 3000 Co-authored-by: New Future <NewFuture@users.noreply.github.com>
This commit is contained in:
@@ -34,6 +34,7 @@ class API:
|
||||
METHOD = "POST" # 请求方法
|
||||
TOKEN_PARAM = "login_token" # token参数
|
||||
DEFAULT = "默认" # 默认线路名
|
||||
LENGTH="length" #添加参数
|
||||
|
||||
|
||||
def request(action, param=None, **params):
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user