mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
19 lines
401 B
Go
19 lines
401 B
Go
// +build !linux
|
|
|
|
package main
|
|
|
|
import "log"
|
|
|
|
// RedirProxy .
|
|
type RedirProxy struct{ *proxy }
|
|
|
|
// NewRedirProxy returns a redirect proxy.
|
|
func NewRedirProxy(addr string, upProxy Proxy) (Proxy, error) {
|
|
return &RedirProxy{proxy: NewProxy(addr, upProxy)}, nil
|
|
}
|
|
|
|
// ListenAndServe redirected requests as a server.
|
|
func (s *RedirProxy) ListenAndServe() {
|
|
log.Fatal("redir not supported on this os")
|
|
}
|