Fix bug when responding with nochange or success
This commit is contained in:
@@ -523,8 +523,10 @@ class DDNSRequestHandler(BaseHTTPRequestHandler):
|
||||
f"zone={hostname.zone}{changed_addrs} notify_change={str(notify_change).lower()}"
|
||||
)
|
||||
self.respond(
|
||||
200, STATUS_NOCHG,
|
||||
{"ipv4": hostname.last_ipv4, "ipv6": hostname.last_ipv6}
|
||||
200,
|
||||
STATUS_NOCHG,
|
||||
ipv4=hostname.last_ipv4,
|
||||
ipv6=hostname.last_ipv6
|
||||
)
|
||||
return
|
||||
|
||||
@@ -545,8 +547,10 @@ class DDNSRequestHandler(BaseHTTPRequestHandler):
|
||||
logging.error(f"Sending change notification error: {e}")
|
||||
|
||||
self.respond(
|
||||
200, STATUS_GOOD,
|
||||
{"ipv4": hostname.last_ipv4, "ipv6": hostname.last_ipv6}
|
||||
200,
|
||||
STATUS_GOOD,
|
||||
ipv4=hostname.last_ipv4,
|
||||
ipv6=hostname.last_ipv6
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user