glider/tproxy_other.go

21 lines
343 B
Go
Raw Normal View History

// +build !linux
package main
import (
"errors"
"log"
)
type TProxy struct{}
// NewTProxy returns a tproxy.
func NewTProxy(addr string, sDialer Dialer) (*TProxy, error) {
return nil, errors.New("tproxy not supported on this os")
}
// ListenAndServe .
func (s *TProxy) ListenAndServe() {
log.Fatal("tproxy not supported on this os")
}