Compare commits

..
Author SHA1 Message Date
Fangliding 23ceba4716 Fix wireguard sendthrough 2026-08-01 19:45:18 +08:00
3 changed files with 3 additions and 3 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)))
-1
View File
@@ -347,7 +347,6 @@ func (h *Handler) SetOutboundGateway(ctx context.Context, ob *session.Outbound)
// case addr.Family().IsDomain():
default:
ob.Gateway = addr
}
}
+1
View File
@@ -138,6 +138,7 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte
}
ob.Name = "wireguard"
ob.CanSpliceCopy = 3
dialer.SetOutboundGateway(ctx, ob)
if err := h.init(ctx); err != nil {
return err