新增功能:frp v2 隧道支持(1.5版本下为灰标无法点击)

This commit is contained in:
2026-07-25 22:42:16 +08:00
parent ce07f4f0f0
commit f49bc07f42
4 changed files with 224 additions and 36 deletions
+9
View File
@@ -95,6 +95,7 @@ const defaultConfig = {
heartbeatInterval: 15,
heartbeatTimeout: 70,
poolCount: 8,
wireProtocolV2: false,
};
async function loadConfig() {
@@ -639,6 +640,12 @@ const app = createApp({
filterProxies(proxies.value, searchKeyword.value)
);
const showDefaultTip = computed(() => {
// 如果 serverAddr 还是默认值,或者为空,显示警告
const addr = globalConfig.serverAddr;
return !addr || addr === "frp.example.com" || addr.trim() === "";
});
// ---- 返回 ----
return {
loggedIn,
@@ -685,6 +692,8 @@ const app = createApp({
passwordChangeSuccess,
changePassword,
showDefaultTip,
// 日志相关
logLines,
logTotal,