masque

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package masque implements an HTTP/3 CONNECT-UDP proxy as specified by RFC 9298. It uses the same authentication and outbound source selection as the TCP and SOCKS5 servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server serves MASQUE CONNECT-UDP tunnels over HTTP/3.

func NewServer

func NewServer(ctx serverbase.Context, certFile, keyFile string) (*Server, error)

NewServer builds a MASQUE server. An empty certificate pair generates and persists a self-signed pair using the same state directory as HTTPS mode.

func (*Server) Close

func (s *Server) Close() error

Close stops new HTTP/3 connections and immediately closes active tunnels.

func (*Server) Start

func (s *Server) Start() error

Start listens on the configured UDP endpoint and blocks until closed.

Jump to

Keyboard shortcuts

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