mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-09 13:59:54 +00:00
27 lines
453 B
Go
27 lines
453 B
Go
//go:build !linux
|
|
|
|
package tproxy
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
"time"
|
|
|
|
"github.com/apernet/hysteria/core/client"
|
|
)
|
|
|
|
type UDPTProxy struct {
|
|
HyClient client.Client
|
|
Timeout time.Duration
|
|
EventLogger UDPEventLogger
|
|
}
|
|
|
|
type UDPEventLogger interface {
|
|
Connect(addr, reqAddr net.Addr)
|
|
Error(addr, reqAddr net.Addr, err error)
|
|
}
|
|
|
|
func (r *UDPTProxy) ListenAndServe(laddr *net.UDPAddr) error {
|
|
return errors.New("not supported on this platform")
|
|
}
|