glider/redir_win.go
2017-07-13 21:55:41 +08:00

18 lines
348 B
Go

// +build windows
package main
import "log"
type redir struct{ Proxy }
// RedirProxy returns a redirect proxy.
func RedirProxy(addr string, upProxy Proxy) (Proxy, error) {
return &redir{Proxy: upProxy}, nil
}
// ListenAndServe redirected requests as a server.
func (s *redir) ListenAndServe() {
log.Fatal("redir not supported on windows")
}