Skip to content

Commit

Permalink
mdns: oneshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed May 31, 2023
1 parent c2ab530 commit af83b9f
Show file tree
Hide file tree
Showing 8 changed files with 548 additions and 6 deletions.
12 changes: 10 additions & 2 deletions intra/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,24 @@ func NewGroundedTransport() (d dnsx.Transport) {
return dns53.NewGroundedTransport()
}

func NewMDNSTransport(protos string) (d dnsx.Transport) {
return dns53.NewMDNSTransport(protos)
}

func newDNSCryptTransport() (p dnsx.TransportMult) {
p = dnscrypt.NewProxy()
return
}

// NewDoHTransport returns a DNSTransport that connects to the specified DoH server.
// `url` is the URL of a DoH server (no template, POST-only). If it is nonempty, it
// overrides `udpdns` and `tcpdns`.
//
// overrides `udpdns` and `tcpdns`.
//
// `ips` is an optional comma-separated list of IP addresses for the server. (This
// wrapper is required because gomobile cannot make bindings for []string.)
//
// wrapper is required because gomobile cannot make bindings for []string.)
//
// `protector` is the socket protector to use for all external network activity.
// `auth` will provide a client certificate if required by the TLS server.
// `listener` will be notified after each DNS query succeeds or fails.
Expand Down
Loading

0 comments on commit af83b9f

Please sign in to comment.