mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-04 23:45:34 +00:00
530aaa52f1
We weren't correctly retrying truncated requests to an upstream DNS server with TCP. Instead, we'd return a truncated request to the user, even if the user was querying us over TCP and thus able to handle a large response. Also, add an envknob and controlknob to allow users/us to disable this behaviour if it turns out to be buggy (✨ DNS ✨). Updates #9264 Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: Ifb04b563839a9614c0ba03e9c564e8924c1a2bfd
36 lines
1.2 KiB
Go
36 lines
1.2 KiB
Go
// Code generated by "stringer -type Label -trimprefix Label"; DO NOT EDIT.
|
|
|
|
package sockstats
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[LabelControlClientAuto-0]
|
|
_ = x[LabelControlClientDialer-1]
|
|
_ = x[LabelDERPHTTPClient-2]
|
|
_ = x[LabelLogtailLogger-3]
|
|
_ = x[LabelDNSForwarderDoH-4]
|
|
_ = x[LabelDNSForwarderUDP-5]
|
|
_ = x[LabelNetcheckClient-6]
|
|
_ = x[LabelPortmapperClient-7]
|
|
_ = x[LabelMagicsockConnUDP4-8]
|
|
_ = x[LabelMagicsockConnUDP6-9]
|
|
_ = x[LabelNetlogLogger-10]
|
|
_ = x[LabelSockstatlogLogger-11]
|
|
_ = x[LabelDNSForwarderTCP-12]
|
|
}
|
|
|
|
const _Label_name = "ControlClientAutoControlClientDialerDERPHTTPClientLogtailLoggerDNSForwarderDoHDNSForwarderUDPNetcheckClientPortmapperClientMagicsockConnUDP4MagicsockConnUDP6NetlogLoggerSockstatlogLoggerDNSForwarderTCP"
|
|
|
|
var _Label_index = [...]uint8{0, 17, 36, 50, 63, 78, 93, 107, 123, 140, 157, 169, 186, 201}
|
|
|
|
func (i Label) String() string {
|
|
if i >= Label(len(_Label_index)-1) {
|
|
return "Label(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _Label_name[_Label_index[i]:_Label_index[i+1]]
|
|
}
|