Reduce subscription Profile-Update-Interval to 2 hours
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ddd8a36c64
commit
94b02242ed
2 files changed
+2
-2
No files matched your search
@@ -45,7 +45,7 @@ public static class SubscriptionEndpoints
|
|||||||
"Subscription-Userinfo",
|
"Subscription-Userinfo",
|
||||||
$"upload={result.Value.UsedUpBytes}; download={result.Value.UsedDownBytes}; total={total}; expire={expire}"
|
$"upload={result.Value.UsedUpBytes}; download={result.Value.UsedDownBytes}; total={total}; expire={expire}"
|
||||||
);
|
);
|
||||||
response.Headers.Append("Profile-Update-Interval", "12");
|
response.Headers.Append("Profile-Update-Interval", "2");
|
||||||
|
|
||||||
return Results.Text(base64Body, "text/plain; charset=utf-8");
|
return Results.Text(base64Body, "text/plain; charset=utf-8");
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -405,7 +405,7 @@ totalConfigs, activeConfigs, totalUsedUpBytes, totalUsedDownBytes }` — счи
|
|||||||
`VpnConfig.SubscriptionToken` (**один конфиг**); пробуются по очереди, первый успешный — в ответе.
|
`VpnConfig.SubscriptionToken` (**один конфиг**); пробуются по очереди, первый успешный — в ответе.
|
||||||
Неизвестный/погашенный токен → `404`. Заголовки ответа:
|
Неизвестный/погашенный токен → `404`. Заголовки ответа:
|
||||||
`Subscription-Userinfo: upload=<up>; download=<down>; total=<up+down>; expire=<unix|0>` и
|
`Subscription-Userinfo: upload=<up>; download=<down>; total=<up+down>; expire=<unix|0>` и
|
||||||
`Profile-Update-Interval: 12` — их читают клиенты (v2rayN/Nekoray и т.п.), чтобы показать остаток.
|
`Profile-Update-Interval: 2` (часы) — их читают клиенты (v2rayN/Nekoray и т.п.), чтобы показать остаток.
|
||||||
|
|
||||||
## SignalR — Hub `/hubs/panel`
|
## SignalR — Hub `/hubs/panel`
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user