mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-01-12 21:57:15 +08:00
Revert all changes to handler.go
- Restore handler.go to original state before FullCone implementation - All FullCone NAT logic now contained in udp_fullcone.go and stack_gvisor.go - Handler.go remains unchanged from main branch - Clean separation of concerns between original handler and new FullCone implementation Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
@@ -35,7 +35,8 @@ type ConnectionHandler interface {
|
||||
var _ ConnectionHandler = (*Handler)(nil)
|
||||
|
||||
func (t *Handler) policy() policy.Session {
|
||||
return t.policyManager.ForLevel(t.config.UserLevel)
|
||||
p := t.policyManager.ForLevel(t.config.UserLevel)
|
||||
return p
|
||||
}
|
||||
|
||||
// Init the Handler instance with necessary parameters
|
||||
@@ -83,6 +84,7 @@ func (t *Handler) Init(ctx context.Context, pm policy.Manager, dispatcher routin
|
||||
}
|
||||
|
||||
t.stack = tunStack
|
||||
|
||||
errors.LogInfo(t.ctx, tunName, " up")
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user