feat(remote): 新增文件传输专用端口配置
- 添加 fileTransferPort 字段到 RemoteDevice 类型 - 新增 frp 穿透配置: 3003 -> 8083 - 文件传输功能改用专用端口,避免与远程桌面端口共用 - 配置对话框新增文件传输端口设置
This commit is contained in:
@@ -73,6 +73,8 @@ export class RemoteService {
|
||||
serverHost: deviceConfig.serverHost || '',
|
||||
desktopPort: deviceConfig.desktopPort || 3000,
|
||||
gitPort: deviceConfig.gitPort || 3001,
|
||||
openCodePort: deviceConfig.openCodePort || 3002,
|
||||
fileTransferPort: deviceConfig.fileTransferPort || 3003,
|
||||
password: deviceConfig.password || '',
|
||||
}
|
||||
} catch {
|
||||
@@ -82,6 +84,8 @@ export class RemoteService {
|
||||
serverHost: '',
|
||||
desktopPort: 3000,
|
||||
gitPort: 3001,
|
||||
openCodePort: 3002,
|
||||
fileTransferPort: 3003,
|
||||
password: '',
|
||||
}
|
||||
}
|
||||
@@ -116,6 +120,8 @@ export class RemoteService {
|
||||
serverHost: device.serverHost,
|
||||
desktopPort: device.desktopPort,
|
||||
gitPort: device.gitPort,
|
||||
openCodePort: device.openCodePort,
|
||||
fileTransferPort: device.fileTransferPort,
|
||||
password: device.password || '',
|
||||
}
|
||||
await fs.writeFile(deviceConfigPath, JSON.stringify(deviceConfig, null, 2), 'utf-8')
|
||||
|
||||
Reference in New Issue
Block a user