新增功能:frp v2 隧道支持(1.5版本下为灰标无法点击)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user