caddy_httpAbortListener

package module
v0.0.0-...-d293ecb Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

httpAbortListener for Caddy

This package abort the connections that come on the TLS port as an HTTP request by detecting using the first few bytes that it's not a TLS handshake, but instead an HTTP request.

This plugin is inspired and modified by the HTTPRedirectListenerWrapper.

Caddy module name

caddy.listeners.http_abort
Caddyfile Examples
{
	servers {
		listener_wrappers {
			http_abort
			tls
		}
	}
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPAbortListenerWrapper

type HTTPAbortListenerWrapper struct {
}

func (HTTPAbortListenerWrapper) CaddyModule

func (HTTPAbortListenerWrapper) CaddyModule() caddy.ModuleInfo

func (*HTTPAbortListenerWrapper) UnmarshalCaddyfile

func (h *HTTPAbortListenerWrapper) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

func (*HTTPAbortListenerWrapper) WrapListener

func (h *HTTPAbortListenerWrapper) WrapListener(l net.Listener) net.Listener

Jump to

Keyboard shortcuts

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