Movatterモバイル変換


[0]ホーム

URL:


socks5

package
v1.92.2Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:11Imported by:17

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package socks5 is a SOCKS5 server implementation.

This is used for userspace networking in Tailscale. Specifically,this is used for dialing out of the machine to other nodes, withoutthe host kernel's involvement, so it doesn't proper routing tables,TUN, IPv6, etc. This package is meant to only handle the SOCKS5 protocoldetails and not any integration with Tailscale internals itself.

The glue between this package and Tailscale is in net/socks5/tssocks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeConn

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

Conn is a SOCKS5 connection for client to reachserver.

func (*Conn)Run

func (c *Conn) Run()error

Run starts the new connection.

typeServer

type Server struct {// Logf optionally specifies the logger to use.// If nil, the standard logger is used.Logflogger.Logf// Dialer optionally specifies the dialer to use for outgoing connections.// If nil, the net package's standard dialer is used.Dialer func(ctxcontext.Context, network, addrstring) (net.Conn,error)// Username and Password, if set, are the credential clients must provide.UsernamestringPasswordstring}

Server is a SOCKS5 proxy server.

func (*Server)Serve

func (s *Server) Serve(lnnet.Listener)error

Serve accepts and handles incoming connections on the given listener.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp