glider/redir_other.go

22 lines
390 B
Go
Raw Normal View History

// +build !linux
2017-07-13 21:55:41 +08:00
package main
import (
"errors"
"log"
)
2017-07-13 21:55:41 +08:00
// RedirProxy struct
type RedirProxy struct{}
2017-07-13 21:55:41 +08:00
2017-08-16 22:37:42 +08:00
// NewRedirProxy returns a redirect proxy.
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
}
// ListenAndServe .
2017-08-16 22:37:42 +08:00
func (s *RedirProxy) ListenAndServe() {
log.Fatal("redir not supported on this os")
2017-07-13 21:55:41 +08:00
}