aboutsummaryrefslogtreecommitdiff
path: root/route.go
diff options
context:
space:
mode:
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
}