Compare commits

..
Author SHA1 Message Date
Fangliding 559b82b60b hysteria: Print udp log 2026-08-02 13:04:25 +08:00
2 changed files with 9 additions and 2 deletions
+2 -2
View File
@@ -172,13 +172,13 @@ func (h *HealthPing) doCheck(ctx context.Context, tags []string, duration time.D
for _, tag := range tags {
handler := tag
client := newPingClient(
ctx,
h.ctx,
h.dispatcher,
h.Settings.Destination,
h.Settings.Timeout,
handler,
)
for range rounds {
for i := 0; i < rounds; i++ {
delay := time.Duration(0)
if duration > 0 {
delay = time.Duration(dice.RollInt63n(int64(duration)))
+7
View File
@@ -121,6 +121,13 @@ func (s *Server) Process(ctx context.Context, network net.Network, conn stat.Con
writer: conn,
addr: addr.NetAddr(),
}
ctx = log.ContextWithAccessMessage(ctx, &log.AccessMessage{
From: conn.RemoteAddr(),
To: addr,
Status: log.AccessAccepted,
Reason: "",
Email: inbound.User.Email,
})
return dispatcher.DispatchLink(ctx, *addr, &transport.Link{
Reader: reader,