增加 localhost 检测

This commit is contained in:
whyour
2026-05-17 23:43:09 +08:00
parent 3464c4da61
commit 40d4de9017
6 changed files with 19 additions and 4 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ class TaskLimit {
concurrency: Math.max(os.cpus().length, 4),
});
private client = new ApiClient(
`0.0.0.0:${config.grpcPort}`,
`localhost:${config.grpcPort}`,
credentials.createInsecure(),
{ 'grpc.enable_http_proxy': 0 },
);