proxymux

package
v0.0.0-...-113f59a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package proxymux splits a net.Listener in two, routing SOCKS5 connections to one and HTTP requests to the other.

It allows for hosting both a SOCKS5 proxy and an HTTP proxy on the same listener.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitSOCKSAndHTTP

func SplitSOCKSAndHTTP(ln net.Listener) (socksListener, httpListener net.Listener)

SplitSOCKSAndHTTP accepts connections on ln and passes connections through to either socksListener or httpListener, depending the first byte sent by the client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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