fix build in go-1.10.3 at win

This commit is contained in:
chenhw2 2018-07-13 11:24:47 +08:00
parent c4e6bcf5d9
commit 83fb2cc814

View File

@ -25,6 +25,10 @@ func TCPRedirectHandler(opts ...HandlerOption) Handler {
return h
}
func (h *tcpRedirectHandler) Init(options ...HandlerOption) {
log.Log("[red-tcp] TCP redirect is not available on the Windows platform")
}
func (h *tcpRedirectHandler) Handle(c net.Conn) {
log.Log("[red-tcp] TCP redirect is not available on the Windows platform")
c.Close()