Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
snltty committed Sep 23, 2024
1 parent 6096589 commit ad111da
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
18 changes: 6 additions & 12 deletions linker.web/src/views/full/server/Async.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,27 @@
<div>
<el-card shadow="never">
<template #header>
<div class="card-header">
<div class="card-header flex">
<span>同步密钥</span>
<span class="flex-1"></span>
<el-button type="success" @click="handleSyncSecretKey">确定同步</el-button>
</div>
</template>
<div>
同步,信标服务器,中继服务器,服务器代理穿透,的密钥到所有客户端
</div>
<template #footer>
<div class="t-r">
<el-button type="success" @click="handleSyncSecretKey">确定同步</el-button>
</div>
</template>
</el-card>
<el-card shadow="never" style="margin-top:2rem">
<template #header>
<div class="card-header">
<div class="card-header flex">
<span>同步服务器配置</span>
<span class="flex-1"></span>
<el-button type="success" @click="handleSyncServer">确定同步</el-button>
</div>
</template>
<div>
同步,信标服务器,端口服务器,中继服务器,列表到所有客户端
</div>
<template #footer>
<div class="t-r">
<el-button type="success" @click="handleSyncServer">确定同步</el-button>
</div>
</template>
</el-card>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion linker.web/src/views/full/server/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
components:{},
setup(props) {
const excludes = ['./Index.vue','./Version.vue']
const excludes = ['./Index.vue','./Version.vue','./TunnelServers.vue']
const files = require.context('./', true, /.+\.vue/);
const settingComponents = files.keys().filter(c=>excludes.includes(c)==false).map(c => files(c).default).sort((a,b)=>a.order-b.order);
Expand Down
12 changes: 12 additions & 0 deletions linker.web/src/views/full/server/SignInServers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import { injectGlobalData } from '@/provide';
import { ElMessage, ElMessageBox } from 'element-plus';
import { computed, inject, reactive, watch } from 'vue'
import { Delete,Plus,Select } from '@element-plus/icons-vue';
import { setTunnelServers } from '@/apis/tunnel';
export default {
label:'信标服务器',
name:'signInServers',
Expand Down Expand Up @@ -114,10 +115,21 @@ export default {
}
const handleSave = ()=>{
const tunnelServers = globalData.value.config.Client.Tunnel.Servers.slice();
const server = state.list[0];
for(let i=0;i<tunnelServers.length;i++){
tunnelServers[i].Host = server.Host;
}
setSignInServers(state.list).then(()=>{
ElMessage.success('已操作');
}).catch(()=>{
ElMessage.error('操作失败');
});
setTunnelServers(tunnelServers).then(()=>{
ElMessage.success('已操作');
}).catch(()=>{
ElMessage.error('操作失败');
});;
}
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
v1.4.2
2024-09-23 15:39:00
2024-09-23 17:05:56
1. 优化服务器代理穿透,延长UDP超时时间,优化穿透添加逻辑
2. 当提示端口被占用时,可以稍等一段时间再尝试启动穿透
3. 优化配置同步

0 comments on commit ad111da

Please sign in to comment.