server/tcp_tls/tcp_tls.go
crusader 187ef708f6 ing
2017-10-26 21:30:55 +09:00

20 lines
277 B
Go

package tcp_tls
import (
"crypto/tls"
"net"
"git.loafle.net/commons_go/server"
)
type ServerHandlers struct {
server.ServerHandlers
tlsConfig *tls.Config
}
func (sh *ServerHandlers) Listen() (net.Listener, error) {
return tls.Listen("tcp", sh.Addr, sh.tlsConfig)
}