From 6e2d00bd6cb79e8869bfc9264874f949e1172361 Mon Sep 17 00:00:00 2001 From: MarekWojt Date: Thu, 5 Jan 2023 20:16:52 +0100 Subject: [PATCH] fix ipv6 updating ipv4 in update both action --- web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/web.go b/web/web.go index 83ef280..bb8a303 100644 --- a/web/web.go +++ b/web/web.go @@ -148,7 +148,7 @@ func update(ctx *fasthttp.RequestCtx) { } if ipv6 != "" { - err := dns.UpdateIpv4(domain, ipv4) + err := dns.UpdateIpv6(domain, ipv6) if err != nil { ctx.WriteString(err.Error()) ctx.SetStatusCode(fasthttp.StatusNotFound)