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
+4 -2
View File
@@ -106,12 +106,14 @@ func (c *ClientEndpoint) Start(stage adapter.StartStage, scope *adapter.Scope) e
return nil
}
func (c *ClientEndpoint) References() []string {
func (c *ClientEndpoint) IsEndpoint() {}
func (c *ClientEndpoint) References() ([]string, []string) {
referrer, isReferrer := c.outbound.(adapter.Referrer)
if isReferrer {
return referrer.References()
}
return c.outbound.Dependencies()
return c.outbound.Dependencies(), nil
}
func (c *ClientEndpoint) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error) {
+7 -4
View File
@@ -107,15 +107,18 @@ func (s *ServerEndpoint) Start(stage adapter.StartStage, scope *adapter.Scope) e
return nil
}
func (s *ServerEndpoint) References() []string {
var references []string
func (s *ServerEndpoint) IsEndpoint() {}
func (s *ServerEndpoint) References() (outbounds []string, dnsServers []string) {
for _, inbound := range s.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 (s *ServerEndpoint) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error) {