From 7f73b75d3ff5b3af9a9719adfaa777358b191c03 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 4 Apr 2016 01:44:47 +0200 Subject: Remove parsed parts from Route entry --- route.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'route.go') 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 -- cgit v1.2.3