1
0
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:
Darien Raymond
2017-02-09 22:49:38 +01:00
parent d270a99d4f
commit d04d92c187
15 changed files with 122 additions and 98 deletions

View File

@@ -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
}
}