fix ipv6 updating ipv4 in update both action

This commit is contained in:
2023-01-05 20:16:52 +01:00
parent 74aa218cf0
commit 6e2d00bd6c

View File

@@ -148,7 +148,7 @@ func update(ctx *fasthttp.RequestCtx) {
} }
if ipv6 != "" { if ipv6 != "" {
err := dns.UpdateIpv4(domain, ipv4) err := dns.UpdateIpv6(domain, ipv6)
if err != nil { if err != nil {
ctx.WriteString(err.Error()) ctx.WriteString(err.Error())
ctx.SetStatusCode(fasthttp.StatusNotFound) ctx.SetStatusCode(fasthttp.StatusNotFound)