mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-07-25 04:48:11 +00:00
.github
app
auth
cmd
http
redirect
relay
socks5
tproxy
tcp_linux.go
tcp_stub.go
udp_linux.go
udp_stub.go
tun
go.mod
go.sum
core
docs
.gitignore
CHANGELOG.md
Dockerfile
LICENSE.md
README.md
Taskfile.yaml
build.ps1
build.sh
docker-compose.yaml
go.work
go.work.sum
install_server.sh
26 lines
472 B
Go
26 lines
472 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package tproxy
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
"time"
|
|
|
|
"github.com/apernet/hysteria/core/cs"
|
|
)
|
|
|
|
type TCPTProxy struct{}
|
|
|
|
func NewTCPTProxy(hyClient *cs.Client, 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
|
|
}
|