Update sing-box core

This commit is contained in:
Shtorm
2026-08-06 14:09:46 +03:00
57 changed files with 1628 additions and 429 deletions

View File

@@ -204,10 +204,12 @@ func (i *Service) onNetworkUpdate() {
}
func (conf *TransportLink) nameList(ndots int, name string) []string {
search := common.Map(common.Filter(conf.domain, func(it LinkDomain) bool {
search := common.Filter(common.Map(common.Filter(conf.domain, func(it LinkDomain) bool {
return !it.RoutingOnly
}), func(it LinkDomain) string {
return it.Domain
return mDNS.Fqdn(it.Domain)
}), func(it string) bool {
return it != "."
})
l := len(name)

View File

@@ -6,7 +6,6 @@ import (
"context"
"net/netip"
"os"
"strings"
"sync"
"sync/atomic"
"time"
@@ -200,7 +199,7 @@ func (t *Transport) Exchange(ctx context.Context, message *mDNS.Msg) (*mDNS.Msg,
if domain.Domain == "." && domain.RoutingOnly && !t.acceptDefaultResolvers {
continue
}
if strings.HasSuffix(question.Name, domain.Domain) {
if mDNS.IsSubDomain(domain.Domain, question.Name) {
selectedLink = link
}
}