mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-27 11:10:51 +00:00
Fixed: Temporarily hide the SFTP protocol and restrict the winrm protocol
This commit is contained in:
parent
7cfb1c6ee7
commit
9b127470e2
@ -111,7 +111,9 @@ export default {
|
||||
try {
|
||||
const url = this.formatterArgs.assetUrl.replace('{id}', assetId)
|
||||
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) {
|
||||
throw new Error(`Error getting protocols: ${e}`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user