Fix hosts DNS server

This commit is contained in:
k9982874
2025-03-10 13:57:59 +08:00
committed by 世界
parent 8a9e07f3dc
commit db9a94de8a
5 changed files with 24 additions and 10 deletions

View File

@@ -316,8 +316,8 @@ type LegacyDNSServerOptions struct {
}
type HostsDNSServerOptions struct {
Path badoption.Listable[string] `json:"path,omitempty"`
Predefined badjson.TypedMap[string, badoption.Listable[netip.Addr]] `json:"predefined,omitempty"`
Path badoption.Listable[string] `json:"path,omitempty"`
Predefined *badjson.TypedMap[string, badoption.Listable[netip.Addr]] `json:"predefined,omitempty"`
}
type LocalDNSServerOptions struct {