From 2e60a48113068d4913e38bc2d67393ec9bdf7152 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 7 Apr 2024 19:45:44 -0600 Subject: [PATCH] use correct address format, never trust copilot ugghhgghhghg --- Dockerfile | 2 +- hcdns/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82f411a..790c580 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,4 @@ RUN go build -o /app/hatecomputers EXPOSE 8080 -CMD ["/app/hatecomputers", "--server", "--migrate", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/hatecomputers.db", "--static-path", "/app/static", "--scheduler", "--dns", "--dns-port", "8053", "--dns-resolvers", "1.1.1.1,1.0.0.1"] +CMD ["/app/hatecomputers", "--server", "--migrate", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/hatecomputers.db", "--static-path", "/app/static", "--scheduler", "--dns", "--dns-port", "8053", "--dns-resolvers", "1.1.1.1:53,1.0.0.1:53"] diff --git a/hcdns/server.go b/hcdns/server.go index 2e110e8..0fe412b 100644 --- a/hcdns/server.go +++ b/hcdns/server.go @@ -29,8 +29,8 @@ func (h *DnsHandler) resolveExternal(domain string, qtype uint16) ([]dns.RR, err i := 0 in, _, err := client.Exchange(message, h.DnsResolvers[i]) for err != nil && i < len(h.DnsResolvers) { - i++ in, _, err = client.Exchange(message, h.DnsResolvers[i]) + i++ } if err != nil {