mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-08 13:29:53 +00:00
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")
|
|
}
|