mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-06 23:56:37 +08:00
[优化] 增加中继 Vhost HTTP 端口支持并优化相关逻辑
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
import type { NodeItem } from '@/features/nodes/types';
|
import type { NodeItem } from '@/features/nodes/types';
|
||||||
|
|
||||||
export const WS_CONNECTED_LAST_SEEN = '__OPENFLARE_WS_CONNECTED__';
|
export const WS_CONNECTED_LAST_SEEN = '__OPENFLARE_WS_CONNECTED__';
|
||||||
|
export const FLARED_WS_CONNECTED_LAST_SEEN = '__OPENFLARE_FLARED_WS_CONNECTED__';
|
||||||
|
|
||||||
export function isWSConnectedLastSeen(value: string | null | undefined) {
|
export function isWSConnectedLastSeen(value: string | null | undefined) {
|
||||||
return value === WS_CONNECTED_LAST_SEEN;
|
return value === WS_CONNECTED_LAST_SEEN || value === FLARED_WS_CONNECTED_LAST_SEEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isMeaningfulTime(value: string | null | undefined) {
|
export function isMeaningfulTime(value: string | null | undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user