Skip to content

Commit

Permalink
dnsforward: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizzick committed Nov 30, 2023
1 parent 5bd6805 commit a6c5079
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion internal/dnsforward/dialcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func (s *Server) DialContext(ctx context.Context, network, addr string) (conn ne
var dialErrs []error
for _, ip := range ips {
addrPort := netip.AddrPortFrom(ip, uint16(port))
// addr = net.JoinHostPort(a.String(), port)
conn, err = dialer.DialContext(ctx, network, addrPort.String())
if err != nil {
dialErrs = append(dialErrs, err)
Expand Down
2 changes: 1 addition & 1 deletion internal/dnsforward/dnsforward.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ func (s *Server) AddrProcConfig() (c *client.DefaultAddrProcConfig) {

// Resolve gets IP addresses by host name from an upstream server. No
// request/response filtering is performed. Query log and Stats are not
// updated. This method may be called before Start().
// updated. This method may be called before [Server.Start].
func (s *Server) Resolve(ctx context.Context, net, host string) (addr []netip.Addr, err error) {
s.serverLock.RLock()
defer s.serverLock.RUnlock()
Expand Down

0 comments on commit a6c5079

Please sign in to comment.