mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-12 06:46:04 +03:00
WireGuard inbound: Add missing inbound session information back (#4126)
Fixes https://github.com/XTLS/Xray-core/issues/4121
This commit is contained in:
parent
ae62a0fb52
commit
3e7002d24c
@ -144,14 +144,15 @@ func (s *Server) forwardConnection(dest net.Destination, conn net.Conn) {
|
|||||||
Reason: "",
|
Reason: "",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if s.info.inboundTag != nil {
|
||||||
|
ctx = session.ContextWithInbound(ctx, s.info.inboundTag)
|
||||||
|
}
|
||||||
|
|
||||||
// what's this?
|
// what's this?
|
||||||
// Session information should not be shared between different connections
|
// Session information should not be shared between different connections
|
||||||
// why reuse them in server level? This will cause incorrect destoverride and unexpected routing behavior.
|
// why reuse them in server level? This will cause incorrect destoverride and unexpected routing behavior.
|
||||||
// Disable it temporarily. Maybe s.info should be removed.
|
// Disable it temporarily. Maybe s.info should be removed.
|
||||||
|
|
||||||
// if s.info.inboundTag != nil {
|
|
||||||
// ctx = session.ContextWithInbound(ctx, s.info.inboundTag)
|
|
||||||
// }
|
|
||||||
// if s.info.outboundTag != nil {
|
// if s.info.outboundTag != nil {
|
||||||
// ctx = session.ContextWithOutbounds(ctx, []*session.Outbound{s.info.outboundTag})
|
// ctx = session.ContextWithOutbounds(ctx, []*session.Outbound{s.info.outboundTag})
|
||||||
// }
|
// }
|
||||||
|
Loading…
Reference in New Issue
Block a user