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
@@ -84,15 +84,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 {
+6 -5
View File
@@ -89,17 +89,18 @@ func (h *Outbound) Start(stage adapter.StartStage, scope *adapter.Scope) error {
return nil
}
func (h *Outbound) References() []string {
var references []string
func (h *Outbound) References() (outbounds []string, dnsServers []string) {
for _, outbound := range h.outbounds {
referrer, isReferrer := outbound.(adapter.Referrer)
if isReferrer {
references = append(references, referrer.References()...)
referencedOutbounds, referencedDNSServers := referrer.References()
outbounds = append(outbounds, referencedOutbounds...)
dnsServers = append(dnsServers, referencedDNSServers...)
} else {
references = append(references, outbound.Dependencies()...)
outbounds = append(outbounds, outbound.Dependencies()...)
}
}
return references
return outbounds, dnsServers
}
func (h *Outbound) SetKeepIdleConnections(keep bool) {