fix redirect on windows

This commit is contained in:
rui.zheng 2017-01-07 21:27:22 +08:00
parent fb3796ece2
commit 8762ab33dd
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,5 @@
// +build !windows
package gost
import (

17
redirect_win.go Normal file
View File

@ -0,0 +1,17 @@
// +build windows
package gost
import (
"errors"
)
type RedsocksTCPServer struct{}
func NewRedsocksTCPServer(base *ProxyServer) *RedsocksTCPServer {
return &RedsocksTCPServer{}
}
func (s *RedsocksTCPServer) ListenAndServe() error {
return errors.New("Not supported")
}