tun2: go these

This commit is contained in:
Cadey Ratio 2017-10-04 00:03:27 -07:00
parent c95a8c5434
commit b0828f4458
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
1 changed files with 7 additions and 2 deletions

View File

@ -55,6 +55,11 @@ func (s *Server) listenTCP(ctx context.Context, addr string, tcfg *tls.Config) {
panic(err)
}
ln.Log(ctx, ln.F{
"action": "tcp+tls listening",
"addr": l.Addr(),
})
ln.Log(ctx, ln.Action("tcp+tls listening"), ln.F{"addr": l.Addr()})
for {
@ -139,11 +144,11 @@ func New(cfg Config) (*Server, error) {
Manager: m,
}
s.listenKCP(context.Background(), cfg.BackendKCPAddr, &tls.Config{
go s.listenKCP(context.Background(), cfg.BackendKCPAddr, &tls.Config{
GetCertificate: m.GetCertificate,
})
s.listenTCP(context.Background(), cfg.BackendTCPAddr, &tls.Config{
go s.listenTCP(context.Background(), cfg.BackendTCPAddr, &tls.Config{
GetCertificate: m.GetCertificate,
})