1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 09:15:37 -05:00

fix lint warnings in packetaddr

This commit is contained in:
Shelikhoo
2021-12-31 21:22:16 +00:00
committed by Xiaokang Wang (Shelikhoo)
parent dc5cffc8b0
commit 0f2da63f0c
10 changed files with 39 additions and 27 deletions

View File

@@ -202,7 +202,7 @@ func (h *Handler) Dial(ctx context.Context, dest net.Destination) (internet.Conn
outbound.Gateway = h.senderSettings.Via.AsAddress()
}
}
var enablePacketAddrCapture = true
enablePacketAddrCapture := true
if h.senderSettings != nil && h.senderSettings.ProxySettings != nil && h.senderSettings.ProxySettings.HasTag() && h.senderSettings.ProxySettings.TransportLayerProxy {
tag := h.senderSettings.ProxySettings.Tag
newError("transport layer proxying to ", tag, " for dest ", dest).AtDebug().WriteToLog(session.ExportIDToError(ctx))