mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
fix(nat): bound dashboard credential classification
This commit is contained in:
1 parent
34ac50394d
commit
1420dd450c
7 files changed
+338
-95
No files matched your search
@@ -49,8 +49,8 @@ func setupNATFlowTest(t *testing.T) (*rpcService.NezhaHandler, *model.Server, *n
|
||||
|
||||
// Wire the gate exactly as cmd/dashboard/main.go does, with the real
|
||||
// classifiers built by setupDashboardCredentialTest.
|
||||
rpc.SetNATDashboardCredentialGate(IsDashboardCredential, IsDashboardCredentialValue)
|
||||
t.Cleanup(func() { rpc.SetNATDashboardCredentialGate(nil, nil) })
|
||||
rpc.SetNATDashboardCredentialGate(ClassifyDashboardCredentialValues)
|
||||
t.Cleanup(func() { rpc.SetNATDashboardCredentialGate(nil) })
|
||||
|
||||
return handler, server, taskStream
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user