stub_listener

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: MIT Imports: 4 Imported by: 0

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

func StubListener(_ context.Context, _, addr string, _ net.ListenConfig) (any, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL