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()}"
|
f"zone={hostname.zone}{changed_addrs} notify_change={str(notify_change).lower()}"
|
||||||
)
|
)
|
||||||
self.respond(
|
self.respond(
|
||||||
200, STATUS_NOCHG,
|
200,
|
||||||
{"ipv4": hostname.last_ipv4, "ipv6": hostname.last_ipv6}
|
STATUS_NOCHG,
|
||||||
|
ipv4=hostname.last_ipv4,
|
||||||
|
ipv6=hostname.last_ipv6
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -545,8 +547,10 @@ class DDNSRequestHandler(BaseHTTPRequestHandler):
|
|||||||
logging.error(f"Sending change notification error: {e}")
|
logging.error(f"Sending change notification error: {e}")
|
||||||
|
|
||||||
self.respond(
|
self.respond(
|
||||||
200, STATUS_GOOD,
|
200,
|
||||||
{"ipv4": hostname.last_ipv4, "ipv6": hostname.last_ipv6}
|
STATUS_GOOD,
|
||||||
|
ipv4=hostname.last_ipv4,
|
||||||
|
ipv6=hostname.last_ipv6
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user