chore: set up UNCLOUD-INPUT iptables chain and allow WireGuard traffic to the machine

This commit is contained in:
Pavel Sviderski
2025-05-05 14:50:33 +10:00
parent 0b8495e964
commit 6e326277bb
3 changed files with 80 additions and 3 deletions
+5
View File
@@ -94,6 +94,11 @@ func NewServer(listenAddr netip.Addr, resolver Resolver, upstreams []netip.AddrP
}, nil
}
// ListenAddr returns the address the DNS server is listening on.
func (s *Server) ListenAddr() netip.Addr {
return s.listenAddr
}
// Run starts the DNS server listening on both UDP and TCP ports. The server on TCP is not critical so it won't return
// an error if it fails to start. The server will run until the context is canceled or an error occurs.
func (s *Server) Run(ctx context.Context) error {