mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-07-27 02:48:34 +00:00
feat(wip): test reworks
This commit is contained in:
@@ -26,6 +26,15 @@ func serverTLSConfig() server.TLSConfig {
|
||||
}
|
||||
}
|
||||
|
||||
func serverConn() (net.PacketConn, net.Addr, error) {
|
||||
udpAddr := &net.UDPAddr{IP: net.IPv4(127, 0, 0, 1), Port: 14514}
|
||||
udpConn, err := net.ListenUDP("udp", udpAddr)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
return udpConn, udpAddr, nil
|
||||
}
|
||||
|
||||
type pwAuthenticator struct {
|
||||
Password string
|
||||
ID string
|
||||
|
Reference in New Issue
Block a user