This commit is contained in:
2026-07-22 17:30:42 -03:00
parent b903775fb7
commit 3d64d6394b
11 changed files with 173 additions and 223 deletions
+3 -3
View File
@@ -204,9 +204,9 @@ func (s *nativeXrayServer) start(configFile string) error {
}
return fmt.Errorf("native xray: listen %s (shared XHTTP): %w", addr, err)
}
// Apply the global pre-authentication ceiling before net/http can spawn a
// goroutine or begin a TLS handshake for the accepted socket.
serveLn := limitNativeListener(ln)
// Track accepted sockets so stop/reload can close them. VPN transports are
// not subject to a global website-style connection ceiling.
serveLn := trackNativeListener(ln)
if group.security == "tls" {
serveLn = tls.NewListener(serveLn, group.tlsConfig)
}