mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 08:40:20 +00:00
fix(nat): nat records not loaded
This commit is contained in:
1 parent
13384c8a64
commit
107808249d
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user