Files
.github
cmd
docs
pkg
acl
congestion
core
http
pmtud
redirect
origdst_linux.go
origdst_linux_386.go
tcp_linux.go
tcp_stub.go
relay
sockopt
socks5
tproxy
transport
tun
utils
.gitignore
CHANGELOG.md
Dockerfile
LICENSE.md
README.md
Taskfile.yaml
docker-compose.yaml
go.mod
go.sum
install_server.sh
hysteria/pkg/redirect/tcp_stub.go

26 lines
487 B
Go

//go:build !linux
// +build !linux
package redirect
import (
"errors"
"net"
"time"
"github.com/HyNetwork/hysteria/pkg/core"
)
type TCPRedirect struct{}
func NewTCPRedirect(hyClient *core.Client, listen string, timeout time.Duration,
connFunc func(addr, reqAddr net.Addr),
errorFunc func(addr, reqAddr net.Addr, err error),
) (*TCPRedirect, error) {
return nil, errors.New("not supported on the current system")
}
func (r *TCPRedirect) ListenAndServe() error {
return nil
}