From 83fb2cc814ac1b3bb291e27c2e18fa2f328795dc Mon Sep 17 00:00:00 2001 From: chenhw2 Date: Fri, 13 Jul 2018 11:24:47 +0800 Subject: [PATCH] fix build in go-1.10.3 at win --- redirect_win.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/redirect_win.go b/redirect_win.go index 848b70b..ab184b7 100644 --- a/redirect_win.go +++ b/redirect_win.go @@ -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()