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 {
+6 -5
View File
@@ -79,17 +79,18 @@ func (f *Failover) Start(stage adapter.StartStage, scope *adapter.Scope) error {
return nil
}
func (f *Failover) References() []string {
var references []string
func (f *Failover) References() (outbounds []string, dnsServers []string) {
for _, outbound := range f.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 (f *Failover) SetKeepIdleConnections(keep bool) {