feat: erzwinge festen Proxy für API-Anfragen
This commit is contained in:
+9
-1
@@ -32,6 +32,7 @@ import {
|
||||
validateCollectorPersistenceState,
|
||||
validateCollectorTextPreparationRequest
|
||||
} from "../shared/collector";
|
||||
import { getProxyAuthentication } from "./network-proxy";
|
||||
|
||||
forceDarkNativeTheme(nativeTheme);
|
||||
|
||||
@@ -1271,7 +1272,14 @@ function formatRendererErrorReport(rawReport: unknown): string {
|
||||
return parts.join(" ");
|
||||
}
|
||||
|
||||
app.on("child-process-gone", (_event, details) => {
|
||||
app.on("login", (event, _webContents, _requestDetails, authInfo, callback) => {
|
||||
const credentials = getProxyAuthentication(authInfo);
|
||||
if (!credentials) return;
|
||||
event.preventDefault();
|
||||
callback(credentials.username, credentials.password);
|
||||
});
|
||||
|
||||
app.on("child-process-gone", (_event, details) => {
|
||||
const killed = details.reason !== "clean-exit" && details.reason !== "killed";
|
||||
const line = `Subprozess beendet: type=${details.type} reason=${details.reason} exitCode=${details.exitCode ?? "?"}${details.name ? ` name=${details.name}` : ""}${details.serviceName ? ` service=${details.serviceName}` : ""}`;
|
||||
if (killed) {
|
||||
|
||||
Reference in New Issue
Block a user