merge: Merge upstream v1.14.6

This commit is contained in:
Shtorm
2026-11-30 19:46:00 +03:00
292 changed files with 6311 additions and 5159 deletions
+5 -4
View File
@@ -69,15 +69,16 @@ func (h *Inbound) Start(stage adapter.StartStage, scope *adapter.Scope) error {
return nil
}
func (h *Inbound) References() []string {
var references []string
func (h *Inbound) References() (outbounds []string, dnsServers []string) {
for _, inbound := range h.inbounds {
referrer, isReferrer := inbound.(adapter.Referrer)
if isReferrer {
references = append(references, referrer.References()...)
referencedOutbounds, referencedDNSServers := referrer.References()
outbounds = append(outbounds, referencedOutbounds...)
dnsServers = append(dnsServers, referencedDNSServers...)
}
}
return references
return outbounds, dnsServers
}
func (h *Inbound) connHandler(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc) error {