mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 09:25:41 +08:00
18 lines
347 B
Go
18 lines
347 B
Go
// +build !linux
|
|
|
|
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")
|
|
}
|