mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-07-29 21:54:30 +00:00
.github
app
cmd
internal
forwarding
http
proxymux
redirect
sockopts
socks5
tproxy
tcp_linux.go
tcp_others.go
udp_linux.go
udp_others.go
tun
url
utils
utils_test
misc
go.mod
go.sum
main.go
pprof.go
core
extras
media-kit
scripts
.gitignore
CHANGELOG.md
Dockerfile
LICENSE.md
PROTOCOL.md
README.md
go.work
go.work.sum
hyperbole.py
logo.svg
platforms.txt
requirements.txt
25 lines
421 B
Go
25 lines
421 B
Go
//go:build !linux
|
|
|
|
package tproxy
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
|
|
"github.com/apernet/hysteria/core/v2/client"
|
|
)
|
|
|
|
type TCPTProxy struct {
|
|
HyClient client.Client
|
|
EventLogger TCPEventLogger
|
|
}
|
|
|
|
type TCPEventLogger interface {
|
|
Connect(addr, reqAddr net.Addr)
|
|
Error(addr, reqAddr net.Addr, err error)
|
|
}
|
|
|
|
func (r *TCPTProxy) ListenAndServe(laddr *net.TCPAddr) error {
|
|
return errors.New("not supported on this platform")
|
|
}
|