MCPcopy
hub / github.com/caddyserver/caddy / addr

Method addr

caddytest/integration/proxyprotocol_test.go:206–208  ·  view source on GitHub ↗

addr returns the listening address (host:port) of the TLS backend.

()

Source from the content-addressed store, hash-verified

204
205// addr returns the listening address (host:port) of the TLS backend.
206func (b *tlsProxyProtoBackend) addr() string {
207 return b.srv.Listener.Addr().String()
208}
209
210// tlsConfig returns the *tls.Config used by the backend server.
211// Tests can use it to verify cert details if needed.

Callers

nothing calls this directly

Calls 2

AddrMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected