mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
Enhance token refresh logic and improve MITM server handling
- Introduced a caching mechanism for in-flight token refresh requests to prevent race conditions and reduce unnecessary API calls. - Added error handling for unrecoverable refresh errors, ensuring that the application can gracefully handle token reuse and invalidation scenarios. - Updated the MITM server management to handle port 443 conflicts, allowing users to kill processes occupying the port before starting the server. - Improved user feedback in the MitmServerCard component regarding port conflicts and admin privileges. - Refactored the ComboList component to streamline the display of media provider combos. This update aims to enhance the reliability and user experience of the token management and MITM functionalities.
This commit is contained in:
@@ -124,6 +124,7 @@ export async function getTunnelStatus() {
|
||||
|
||||
return {
|
||||
enabled: settings.tunnelEnabled === true && running,
|
||||
settingsEnabled: settings.tunnelEnabled === true,
|
||||
tunnelUrl: state?.tunnelUrl || "",
|
||||
shortId,
|
||||
publicUrl,
|
||||
@@ -190,6 +191,7 @@ export async function getTailscaleStatus() {
|
||||
const running = isTailscaleRunning();
|
||||
return {
|
||||
enabled: settings.tailscaleEnabled === true && running,
|
||||
settingsEnabled: settings.tailscaleEnabled === true,
|
||||
tunnelUrl: settings.tailscaleUrl || "",
|
||||
running
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user