mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-18 14:57:26 +00:00
Fixed: Temporarily hide the SFTP protocol and restrict the winrm protocol
This commit is contained in:
parent
7cfb1c6ee7
commit
a63879ab72
@ -111,7 +111,9 @@ export default {
|
|||||||
try {
|
try {
|
||||||
const url = this.formatterArgs.assetUrl.replace('{id}', assetId)
|
const url = this.formatterArgs.assetUrl.replace('{id}', assetId)
|
||||||
const res = await this.$axios.get(url)
|
const res = await this.$axios.get(url)
|
||||||
this.protocols = res.protocols || []
|
|
||||||
|
// TODO 暂时将 sftp 隐藏
|
||||||
|
this.protocols = res.protocols.filter(protocol => (protocol.name !== 'sftp') && (protocol.name !== 'winrm')) || []
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new Error(`Error getting protocols: ${e}`)
|
throw new Error(`Error getting protocols: ${e}`)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user