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:
copilot-swe-agent[bot]
2026-01-11 13:54:02 +00:00
parent f6e2347a68
commit 3a35cde8f2

View File

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