perf: 上传到主机,支持socks代理

This commit is contained in:
xiaojunnuo
2024-09-29 11:50:59 +08:00
parent df88a936a5
commit d91026dc4f
4 changed files with 56 additions and 3 deletions
@@ -18,7 +18,7 @@ export class SshAccess implements IAccess, ConnectConfig {
host!: string;
@AccessInput({
title: '端口',
value: '22',
value: 22,
component: {
name: 'a-input-number',
placeholder: '22',
@@ -64,6 +64,17 @@ export class SshAccess implements IAccess, ConnectConfig {
})
passphrase!: string;
@AccessInput({
title: '代理',
helper: '代理配置,格式:socks5://$username:$password@$host:$port',
component: {
name: 'a-input',
vModel: 'value',
},
encrypt: false,
})
socksProxy!: string;
@AccessInput({
title: '是否Windows',
helper: '如果是Windows主机,请勾选此项',