add docstring for confidence
@@ -52,6 +52,11 @@ type AmbientAutoNAT struct {
peers map[peer.ID]struct{}
status NATStatus
addr ma.Multiaddr
+ // Reflects the confidence on of the NATStatus being private, as a single
+ // dialback may fail for reasons unrelated to NAT.
+ // If it is <3, then multiple autoNAT peers may be contacted for dialback
+ // If only a single autoNAT peer is known, then the confidence increases
+ // for each failure until it reaches 3.
confidence int
}
