mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-03 20:20:10 +00:00
fix(nat): nat records not loaded
This commit is contained in:
@@ -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