diff options
| author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-04-07 19:45:44 -0600 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-04-07 19:48:20 -0600 |
| commit | ee49015cc90e6c136ad94243fffc9241b9506a36 (patch) | |
| tree | 4cc6751a33a990c9ab03154bb2a4d10386c21c4d | |
| parent | 86c4ad160a0442713680ff1eaa85ead635b10f8f (diff) | |
| download | hatecomputers.club-ee49015cc90e6c136ad94243fffc9241b9506a36.tar.gz hatecomputers.club-ee49015cc90e6c136ad94243fffc9241b9506a36.zip | |
use correct address format, never trust copilot ugghhgghhghg
| -rw-r--r-- | Dockerfile | 2 | ||||
| -rw-r--r-- | args/args.go | 2 | ||||
| -rw-r--r-- | hcdns/server.go | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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/args/args.go b/args/args.go index 8465fc8..09c96be 100644 --- a/args/args.go +++ b/args/args.go @@ -37,7 +37,7 @@ func GetArgs() (*Arguments, error) { databasePath := flag.String("database-path", "./hatecomputers.db", "Path to the SQLite database") templatePath := flag.String("template-path", "./templates", "Path to the template directory") staticPath := flag.String("static-path", "./static", "Path to the static directory") - dnsResolvers := flag.String("dns-resolvers", "1.1.1.1,1.0.0.1", "Comma-separated list of DNS resolvers") + dnsResolvers := flag.String("dns-resolvers", "1.1.1.1:53,1.0.0.1:53", "Comma-separated list of DNS resolvers") scheduler := flag.Bool("scheduler", false, "Run scheduled jobs via cron") migrate := flag.Bool("migrate", false, "Run the migrations") 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 { |
