mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-09-24 19:24:03 -04:00
update context functions
This commit is contained in:
@@ -52,7 +52,7 @@ func (d *DokodemoDoor) Process(ctx context.Context, network net.Network, conn in
|
||||
Port: d.port,
|
||||
}
|
||||
if d.config.FollowRedirect {
|
||||
if origDest := proxy.OriginalDestinationFromContext(ctx); origDest.IsValid() {
|
||||
if origDest, ok := proxy.OriginalTargetFromContext(ctx); ok {
|
||||
dest = origDest
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user