Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Address string
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)
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 ¶
Types ¶
This section is empty.