2017-07-26 18:56:24 +08:00
|
|
|
// +build !linux
|
2017-07-13 21:55:41 +08:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
2017-08-23 16:35:39 +08:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
"log"
|
|
|
|
)
|
2017-07-13 21:55:41 +08:00
|
|
|
|
2017-08-20 21:44:18 +08:00
|
|
|
// RedirProxy .
|
2017-08-23 16:35:39 +08:00
|
|
|
type RedirProxy struct{}
|
2017-07-13 21:55:41 +08:00
|
|
|
|
2017-08-16 22:37:42 +08:00
|
|
|
// NewRedirProxy returns a redirect proxy.
|
2017-08-23 16:35:39 +08:00
|
|
|
func NewRedirProxy(addr string, sDialer Dialer) (*RedirProxy, error) {
|
|
|
|
return nil, errors.New("redir not supported on this os")
|
2017-07-13 21:55:41 +08:00
|
|
|
}
|
|
|
|
|
2017-09-09 15:06:44 +08:00
|
|
|
// ListenAndServe .
|
2017-08-16 22:37:42 +08:00
|
|
|
func (s *RedirProxy) ListenAndServe() {
|
2017-08-07 15:06:26 +08:00
|
|
|
log.Fatal("redir not supported on this os")
|
2017-07-13 21:55:41 +08:00
|
|
|
}
|