glider/redir_other.go

18 lines
364 B
Go
Raw Normal View History

// +build !linux
2017-07-13 21:55:41 +08:00
package main
import "log"
type redir struct{ *proxy }
2017-07-13 21:55:41 +08:00
// RedirProxy returns a redirect proxy.
func RedirProxy(addr string, upProxy Proxy) (Proxy, error) {
return &redir{proxy: newProxy(addr, upProxy)}, nil
2017-07-13 21:55:41 +08:00
}
// ListenAndServe redirected requests as a server.
func (s *redir) ListenAndServe() {
log.Fatal("redir not supported on this os")
2017-07-13 21:55:41 +08:00
}