mirror of
https://github.com/MarekWojt/gertdns.git
synced 2025-12-15 12:59:53 +01:00
fix ipv6 updating ipv4 in update both action
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user