From 06fe63a2524875725bbe254eaf01688e99019bc3 Mon Sep 17 00:00:00 2001 From: bergyu Date: Mon, 25 Oct 2021 16:42:21 +0800 Subject: [PATCH] opt relay --- src/relay.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/relay.go b/src/relay.go index 491bc674..810d748b 100644 --- a/src/relay.go +++ b/src/relay.go @@ -4,14 +4,12 @@ import ( "os" "path" - ice "shylinux.com/x/icebergs" - _ "shylinux.com/x/icebergs/misc/ssh" - log "shylinux.com/x/toolkits/logs" + "shylinux.com/x/ice" + "shylinux.com/x/icebergs/misc/ssh" ) func main() { - log.LogDisable = true defer func() { recover() }() - args := []string{"ssh.connect", "open", "authfile", path.Join(os.Getenv("HOME"), ".ssh/", path.Base(os.Args[0])+".json")} + args := []string{ssh.CONNECT, "open", "authfile", path.Join(os.Getenv("HOME"), ".ssh/", path.Base(os.Args[0])+".json")} print(ice.Run(append(args, os.Args[1:]...)...)) }