From 4ef33d0ffdd9966c247e17ee44fc4e7adeff5454 Mon Sep 17 00:00:00 2001 From: "arraykeys@gmail.com" Date: Thu, 19 Apr 2018 14:55:56 +0800 Subject: [PATCH] fix #56 Signed-off-by: arraykeys@gmail.com --- services/sps.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/sps.go b/services/sps.go index 4bf5375..327b532 100644 --- a/services/sps.go +++ b/services/sps.go @@ -75,7 +75,7 @@ func (s *SPS) InitOutConnPool() { 0, *s.cfg.ParentType, s.cfg.KCP, - s.cfg.CertBytes, s.cfg.KeyBytes, nil, + s.cfg.CertBytes, s.cfg.KeyBytes, s.cfg.CaCertBytes, *s.cfg.Parent, *s.cfg.Timeout, ) @@ -120,7 +120,7 @@ func (s *SPS) Start(args interface{}) (err error) { if *s.cfg.LocalType == TYPE_TCP { err = sc.ListenTCP(s.callback) } else if *s.cfg.LocalType == TYPE_TLS { - err = sc.ListenTls(s.cfg.CertBytes, s.cfg.KeyBytes, nil, s.callback) + err = sc.ListenTls(s.cfg.CertBytes, s.cfg.KeyBytes, s.cfg.CaCertBytes, s.callback) } else if *s.cfg.LocalType == TYPE_KCP { err = sc.ListenKCP(s.cfg.KCP, s.callback) }