server/tcp_tls/server_handlers.go
crusader 4163705d49 ing
2017-10-27 16:07:14 +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)
}