From 8215d260594ecda9cafc9a7f77a3da8d343ca95e Mon Sep 17 00:00:00 2001 From: shylinux Date: Fri, 10 Mar 2023 13:35:20 +0800 Subject: [PATCH] opt some --- misc/ssh/connect.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/ssh/connect.go b/misc/ssh/connect.go index d8e674f8..e0b0e4ed 100644 --- a/misc/ssh/connect.go +++ b/misc/ssh/connect.go @@ -138,8 +138,8 @@ 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) { - defer m.Echo("exit %s@%s:%s\n", m.Option(aaa.USERNAME), m.Option(tcp.HOST), m.Option(tcp.PORT)) - _ssh_open(nfs.OptionLoad(m, m.Option("authfile")), arg...) + defer nfs.OptionLoad(m, m.Option("authfile")).Echo("exit %s@%s:%s\n", m.Option(aaa.USERNAME), m.Option(tcp.HOST), m.Option(tcp.PORT)) + _ssh_open(m, arg...) }}, tcp.DIAL: {Name: "dial name=shylinux host=shylinux.com port=22 username=shy private=.ssh/id_rsa", Help: "添加", Hand: func(m *ice.Message, arg ...string) { m.Go(func() {