Documentation ¶
Overview ¶
Package stub_listener is a Caddy network that prevents caddy from listening on the host.
Index ¶
Constants ¶
View Source
const NetworkStubName = "stub:"
NetworkStubName is the matcher for the network protocol. The ':' suffix is required.
Variables ¶
This section is empty.
Functions ¶
func StubListener ¶
StubListener creates a stub network listener. This listener does not accept actual network connections but instead blocks on Accept calls until Close is called. It can be used as a base listener when only tunnel listeners are required.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.