Skip to content

Commit

Permalink
feat(cf): keep proxied config in cloudflare (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
NewFuture authored Mar 13, 2022
1 parent 95de71d commit 8edd11d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dns/cloudflare.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def request(method, action, param=None, **params):
"""
if param:
params.update(param)

params = dict((k, params[k]) for k in params if params[k] is not None)
info("%s/%s : %s", API.SITE, action, params)
if Config.PROXY:
Expand Down Expand Up @@ -137,7 +137,7 @@ def update_record(domain, value, record_type="A"):
for (rid, record) in records.items():
if record['content'] != value:
res = request('PUT', '/' + zoneid + '/dns_records/' + record['id'],
type=record_type, content=value, name=domain, ttl=Config.TTL)
type=record_type, content=value, name=domain, proxied=record['proxied'], ttl=Config.TTL)
if res:
get_records.records[cache_key][rid]['content'] = value
result[rid] = res.get("name")
Expand Down

0 comments on commit 8edd11d

Please sign in to comment.