turnserver

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Address string
View Source
var Certificate func(*tls.ClientHelloInfo) (*tls.Certificate, error)

Certificate returns the certificate for the TLS listener. The web server owns certificate loading and renewal and sets this; since it starts *after* us (galene.go calls ice.Update before webserver.Serve), we read it at handshake time rather than when the listener is built. (Sozvon)

View Source
var TLSAddress string

TLSAddress makes the built-in server offer TURN over TLS in addition to the cleartext listeners. Unlike Address it is a *name* with an optional port, not an address: it is what clients are told to connect to, so it must be a name the server's certificate covers. Empty disables it.

Wrapping the relay in TLS matters where cleartext TURN is recognised on the wire: the protocol's magic cookie sits in the first bytes of every packet, which is trivially identified by a middlebox. Pointing this at port 443 goes further, making a call look like a request to the same host that served the page. (Sozvon)

Functions

func ICEServers

func ICEServers() []webrtc.ICEServer

func Start

func Start() error

func StartStop

func StartStop(start bool) error

func Stop

func Stop() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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