aboutsummaryrefslogtreecommitdiff
path: root/route.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-04-04 01:44:47 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-04-04 01:44:47 +0200
commit7f73b75d3ff5b3af9a9719adfaa777358b191c03 (patch)
treeb2b703aaa87a625ce215bfbb0204a84c947ec476 /route.go
parent1c32da0018346b076eaa3fcfc45dcd07f4b9b227 (diff)
Remove parsed parts from Route entry
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