main
lzf 2025-10-17 09:52:13 +08:00
parent 12336a9c40
commit adc0949c71
5 changed files with 14 additions and 12 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>端口转发</title> <title>端口转发</title>
<script type="module" crossorigin src="./assets/index-PO_Ka5xU.js"></script> <script type="module" crossorigin src="./assets/index-B_FuHUXB.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BA8XwqWY.css"> <link rel="stylesheet" crossorigin href="./assets/index-BA8XwqWY.css">
</head> </head>
<body> <body>

View File

@ -12,7 +12,7 @@
<div> <div>
<el-table :data="data.list" style="width: 100%;" max-height="75vh"> <el-table :data="data.list" style="width: 100%;" max-height="75vh">
<el-table-column align="center" label="协议"> <el-table-column align="center" label="协议" width="150">
<template #default="scope"> <template #default="scope">
<div v-if="scope.row.protocol === 1"> <div v-if="scope.row.protocol === 1">
<el-tag disable-transitions type="success">UDP</el-tag> <el-tag disable-transitions type="success">UDP</el-tag>
@ -29,15 +29,15 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="状态"> <el-table-column align="center" label="状态" width="150">
<template #default="scope"> <template #default="scope">
<el-switch v-model="scope.row.status_bool" @change="switchStatus(scope.row)"/> <el-switch v-model="scope.row.status_bool" @change="switchStatus(scope.row)"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" prop="name" label="名称"/> <el-table-column align="center" prop="name" label="名称" width="350"/>
<el-table-column align="center" prop="local_port" label="本地端口"/> <el-table-column align="center" prop="local_port" label="本地端口" width="150"/>
<el-table-column align="center" label="远程地址"> <el-table-column align="center" label="远程地址">
<template #default="scope"> <template #default="scope">
@ -45,7 +45,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="操作"> <el-table-column align="center" label="操作" width="200">
<template #default="scope"> <template #default="scope">
<el-button size="small" type="primary" @click="updateForward(scope.row)"></el-button> <el-button size="small" type="primary" @click="updateForward(scope.row)"></el-button>

View File

@ -5,8 +5,10 @@ set -e
case $1 in case $1 in
"backend") "backend")
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o temp/proxyport.linux main.go CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o temp/proxyport.linux main.go
# scp -P 5566 temp/proxyport.linux kzkzzzz@193.32.149.42:temp/proxyport/proxyport.linux wsl -d Debian -e bash -c "rsync -rvz -P -e 'ssh -p 22' temp/proxyport.linux zifeng.li@sz-rta-kiwi.test:temp/proxyport/"
wsl -d Debian -e bash -c "rsync -rvz -P -e 'ssh -p 22' temp/proxyport.linux zifeng.li@rta-kiwi.test:temp/proxyport/"
# wsl -d Debian -e bash -c "rsync -rvz -P -e 'ssh -p 22' temp/proxyport.linux zifeng.li@rta-kiwi.test:temp/proxyport/"
# wsl -d Debian -e bash -c "rsync -rvz -P -e 'ssh -p 22' temp/proxyport.linux root@10.80.100.101:/opt/temp/proxyport/"
;; ;;
"pi5") "pi5")
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -v -o temp/proxyport.arm64 main.go CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -v -o temp/proxyport.arm64 main.go