We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae62a0f commit 3e7002dCopy full SHA for 3e7002d
1 file changed
proxy/wireguard/server.go
@@ -144,14 +144,15 @@ func (s *Server) forwardConnection(dest net.Destination, conn net.Conn) {
144
Reason: "",
145
})
146
147
+ if s.info.inboundTag != nil {
148
+ ctx = session.ContextWithInbound(ctx, s.info.inboundTag)
149
+ }
150
+
151
// what's this?
152
// Session information should not be shared between different connections
153
// why reuse them in server level? This will cause incorrect destoverride and unexpected routing behavior.
154
// Disable it temporarily. Maybe s.info should be removed.
155
- // if s.info.inboundTag != nil {
- // ctx = session.ContextWithInbound(ctx, s.info.inboundTag)
- // }
156
// if s.info.outboundTag != nil {
157
// ctx = session.ContextWithOutbounds(ctx, []*session.Outbound{s.info.outboundTag})
158
// }
0 commit comments