aboutsummaryrefslogtreecommitdiff
path: root/route.go
diff options
context:
space:
mode:
Diffstat (limited to 'route.go')
-rw-r--r--route.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/route.go b/route.go
index c6794cb..7e54650 100644
--- a/route.go
+++ b/route.go
@@ -16,16 +16,14 @@ type Routes map[string]Route
type Route struct {
Host, Upstream string
Cert, Key []byte
- serverName *url.URL
- upstream *url.URL
certificate *tls.Certificate
}
func (r Route) String() string {
if r.certificate != nil {
- return fmt.Sprintf("%v → %v with TLS", r.serverName, r.upstream)
+ return fmt.Sprintf("%v → %v with TLS", r.Host, r.Upstream)
}
- return fmt.Sprintf("%v → %v", r.serverName, r.upstream)
+ return fmt.Sprintf("%v → %v", r.Host, r.Upstream)
}
// GetCertificate returns certificate for SNI negotiation