aboutsummaryrefslogtreecommitdiff
path: root/route.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-24 00:01:32 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-24 00:01:32 +0100
commit04dc81bed2efa2a3c8a580d7e58b3c5be3775764 (patch)
treee33ae78a57a80152cec5873de44bc2a0b10c88ef /route.go
parentf2483c50f52762db42eec3c785b0da1353b0b0c8 (diff)
More consistent naming
Diffstat (limited to 'route.go')
-rw-r--r--route.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/route.go b/route.go
index 74062b5..c9d05e0 100644
--- a/route.go
+++ b/route.go
@@ -18,7 +18,7 @@ type Entry struct {
cert *tls.Certificate
}
-func (r Route) SNI(h *tls.ClientHelloInfo) (*tls.Certificate, error) {
+func (r Route) GetCertificate(h *tls.ClientHelloInfo) (*tls.Certificate, error) {
if e, ok := r[h.ServerName]; ok && e.cert != nil {
return e.cert, nil
}