mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-02 07:25:33 +00:00
Fixed: Temporarily hide the SFTP protocol and restrict the winrm protocol
This commit is contained in:
@@ -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}`)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user