1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 17:44:05 +08:00
This commit is contained in:
bergyu 2022-01-04 16:37:13 +08:00
parent 5c704512e1
commit 59d84f9033
2 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func _cat_find(m *ice.Message, name string) io.ReadCloser {
return nil return nil
} }
func _cat_list(m *ice.Message, name string) { func _cat_list(m *ice.Message, name string) {
if !_cat_right(m, name) { if m.Warn(!_cat_right(m, name), ice.ErrNotRight) {
return // 没有权限 return // 没有权限
} }

View File

@ -169,6 +169,7 @@ func init() {
}) })
}}, }},
tcp.OPEN: {Name: "open authfile username=shy password verfiy host=shylinux.com port=22 private=.ssh/id_rsa", Help: "终端", Hand: func(m *ice.Message, arg ...string) { tcp.OPEN: {Name: "open authfile username=shy password verfiy host=shylinux.com port=22 private=.ssh/id_rsa", Help: "终端", Hand: func(m *ice.Message, arg ...string) {
aaa.UserRoot(m)
_ssh_open(m.OptionLoad(m.Option("authfile")), arg...) _ssh_open(m.OptionLoad(m.Option("authfile")), arg...)
m.Echo("exit %v@%v:%v\n", m.Option(aaa.USERNAME), m.Option(tcp.HOST), m.Option(tcp.PORT)) m.Echo("exit %v@%v:%v\n", m.Option(aaa.USERNAME), m.Option(tcp.HOST), m.Option(tcp.PORT))
}}, }},