Просмотр исходного кода

types/dnstype: update the usage documentation on dnstype.Resolver

There was pre-existing additional usage for Exit Node DNS resolution via
PeerAPI, as well as new usage just introduced for App Connectors.

Fixes ENG-2324
Updates #cleanup
Signed-off-by: James Tucker <[email protected]>
James Tucker 2 лет назад
Родитель
Сommit
46fd488a6d
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      types/dnstype/dnstype.go

+ 2 - 0
types/dnstype/dnstype.go

@@ -21,6 +21,8 @@ type Resolver struct {
 	//    as of 2022-09-08 only used for certain well-known resolvers
 	//    (see the publicdns package) for which the IP addresses to dial DoH are
 	//    known ahead of time, so bootstrap DNS resolution is not required.
+	//  - "http://node-address:port/path" for DNS over HTTP over WireGuard. This
+	//    is implemented in the PeerAPI for exit nodes and app connectors.
 	//  - [TODO] "tls://resolver.com" for DNS over TCP+TLS
 	Addr string `json:",omitempty"`