From 107808249d390d345f4f103d2f0dec796f88f58e Mon Sep 17 00:00:00 2001 From: naiba Date: Sat, 29 Mar 2025 13:11:56 +0800 Subject: [PATCH] fix(nat): nat records not loaded --- service/singleton/nat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/singleton/nat.go b/service/singleton/nat.go index cc654ab..7b5ceff 100644 --- a/service/singleton/nat.go +++ b/service/singleton/nat.go @@ -20,7 +20,7 @@ func NewNATClass() *NATClass { DB.Find(&sortedList) list := make(map[string]*model.NAT, len(sortedList)) idToDomain := make(map[uint64]string, len(sortedList)) - for _, profile := range list { + for _, profile := range sortedList { list[profile.Domain] = profile idToDomain[profile.ID] = profile.Domain }