Documentation
¶
Overview ¶
Package tcpcheck probes bounded TCP targets and distinguishes a Mistgate answer from another listener.
Index ¶
Constants ¶
const ( KindHTTPMark = "http_mark" KindTLS = "tls" VerdictOurs = "ours" VerdictOther = "other" VerdictRefused = "refused" VerdictTimeout = "timeout" MaxTargets = 8 // MarkSize is the length of a mark's token and of its answer in bytes (Let's Encrypt's token is 32 bytes). MarkSize = 32 )
Variables ¶
Functions ¶
func MarkBody ¶
MarkBody is the response body of a mark, shaped like an ACME key authorization: <token>.<base64url of the answer>.
func MarkPath ¶
MarkPath is the request path of an HTTP-01 mark: Let's Encrypt's own, with the base64url token.
func Probe ¶
func Probe(ctx context.Context, host string, targets []Target) (family string, verdicts map[uint16]string, err error)
Probe resolves host once, preferring IPv4, then probes each target concurrently. A failed port is a verdict; only invalid input or failure to resolve the destination fails the whole call.