Add hosts transport & Remove bad linkname usages

This commit is contained in:
世界
2025-01-25 19:04:12 +08:00
parent 314b25bccf
commit 3fa417f283
22 changed files with 645 additions and 97 deletions

View File

@@ -259,6 +259,11 @@ type LegacyDNSServerOptions struct {
ClientSubnet *badoption.Prefixable `json:"client_subnet,omitempty"`
}
type HostsDNSServerOptions struct {
Path badoption.Listable[string] `json:"path,omitempty"`
Predefined badjson.TypedMap[string, badoption.Listable[netip.Addr]] `json:"predefined,omitempty"`
}
type LocalDNSServerOptions struct {
DialerOptions
LegacyStrategy DomainStrategy `json:"-"`