baez90
57a7e10e74
* Add Prometheus metrics - cleanup - update dependencies - improve parsing of options where possible - Update Go to latest version
18 lines
270 B
Go
18 lines
270 B
Go
package tls_interceptor
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type redirectionTarget struct {
|
|
IPAddress string
|
|
Port uint16
|
|
}
|
|
|
|
func (rt redirectionTarget) address() string {
|
|
return fmt.Sprintf("%s:%d", rt.IPAddress, rt.Port)
|
|
}
|
|
|
|
type tlsOptions struct {
|
|
Target redirectionTarget
|
|
}
|