mirror of
https://github.com/nadoo/glider.git
synced 2025-02-24 01:45:39 +08:00
21 lines
343 B
Go
21 lines
343 B
Go
![]() |
// +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")
|
||
|
}
|