aboutsummaryrefslogtreecommitdiff
path: root/route.go
diff options
context:
space:
mode:
Diffstat (limited to 'route.go')
-rw-r--r--route.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/route.go b/route.go
index c8c9191..3c83bef 100644
--- a/route.go
+++ b/route.go
@@ -18,15 +18,15 @@ func (r Route) GetCertificate(h *tls.ClientHelloInfo) (*tls.Certificate, error)
// Entry holds routing settings
type Entry struct {
- ServerName string // HostName
- Upstream string // URL
- Cert []byte // PEM
- Key []byte // PEM
- cert *tls.Certificate // Parsed
+ Host string // HostName
+ Upstream string // URL
+ Cert []byte // PEM
+ Key []byte // PEM
+ cert *tls.Certificate // Parsed
}
func (e Entry) String() string {
- ret := e.ServerName + " → " + e.Upstream
+ ret := e.Host + " → " + e.Upstream
if e.cert != nil {
ret += " with TLS"
}