stunserver

package
v1.3.106 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package stunserver pkg/deployment/stun/stunserver.go c2-net-transport It provides the 4-socket (2 IPs x 2 ports) UDP listener required by the go-stun client's 3-test NAT type detection algorithm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	PrimaryIP   string
	SecondaryIP string
	PrimaryPort int
	AltPort     int
	Software    string
	Log         *logging.Logger
	// contains filtered or unexported fields
}

Server is a STUN server with 4 UDP sockets across 2 IPs and 2 ports.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start binds 4 UDP sockets and serves STUN requests until ctx is canceled.

Jump to

Keyboard shortcuts

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