mihomo-cli 2.4.1 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +1 -1
- package/dist/index.js +4 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -4211,7 +4211,7 @@ function viewLogWithTail(logPath, options) {
|
|
|
4211
4211
|
}
|
|
4212
4212
|
|
|
4213
4213
|
// src/subscription.ts
|
|
4214
|
-
var DEFAULT_UPDATE_INTERVAL_HOURS =
|
|
4214
|
+
var DEFAULT_UPDATE_INTERVAL_HOURS = 4;
|
|
4215
4215
|
var YAML_DUMP_OPTS = { indent: 2, lineWidth: -1, noCompatMode: true };
|
|
4216
4216
|
var HTTP_CLIENT = createHttpClient({ timeout: 6e4 });
|
|
4217
4217
|
function isMultiUrl(url) {
|
|
@@ -4656,8 +4656,7 @@ function printStatus() {
|
|
|
4656
4656
|
}
|
|
4657
4657
|
|
|
4658
4658
|
// src/commands/start.ts
|
|
4659
|
-
var AUTO_CLEAN_THRESHOLD =
|
|
4660
|
-
var AUTO_CLEAN_THRESHOLD_FREE = 50;
|
|
4659
|
+
var AUTO_CLEAN_THRESHOLD = 50;
|
|
4661
4660
|
function handleStopResult(result) {
|
|
4662
4661
|
if (result.remaining && result.remaining.length > 0) {
|
|
4663
4662
|
console.error(`${colors.red("\u90E8\u5206\u8FDB\u7A0B\u672A\u7EC8\u6B62:")} ${result.remaining.join(", ")}`);
|
|
@@ -4709,10 +4708,9 @@ async function cmdStart(args) {
|
|
|
4709
4708
|
}
|
|
4710
4709
|
process.exit(1);
|
|
4711
4710
|
}
|
|
4712
|
-
|
|
4713
|
-
if (configInfo.proxies > cleanThreshold) {
|
|
4711
|
+
if (configInfo.proxies > AUTO_CLEAN_THRESHOLD) {
|
|
4714
4712
|
console.log("");
|
|
4715
|
-
console.log(`\u8282\u70B9\u6570 ${configInfo.proxies} \u8D85\u8FC7 ${
|
|
4713
|
+
console.log(`\u8282\u70B9\u6570 ${configInfo.proxies} \u8D85\u8FC7 ${AUTO_CLEAN_THRESHOLD}\uFF0C\u81EA\u52A8\u6E05\u7406...`);
|
|
4716
4714
|
console.log("");
|
|
4717
4715
|
await sleep(1e3);
|
|
4718
4716
|
const cleanResult = await autoCleanSubscription(sub.name, { onResult: printTestResult });
|