mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-08 13:29:53 +00:00
24 lines
530 B
Go
24 lines
530 B
Go
// +build !linux
|
|
|
|
package tproxy
|
|
|
|
import (
|
|
"errors"
|
|
"github.com/tobyxdd/hysteria/pkg/core"
|
|
"github.com/tobyxdd/hysteria/pkg/transport"
|
|
"net"
|
|
"time"
|
|
)
|
|
|
|
type TCPTProxy struct{}
|
|
|
|
func NewTCPTProxy(hyClient *core.Client, transport transport.Transport, listen string, timeout time.Duration,
|
|
connFunc func(addr, reqAddr net.Addr),
|
|
errorFunc func(addr, reqAddr net.Addr, err error)) (*TCPTProxy, error) {
|
|
return nil, errors.New("not supported on the current system")
|
|
}
|
|
|
|
func (r *TCPTProxy) ListenAndServe() error {
|
|
return nil
|
|
}
|