From 705e81222d8bdecc0a7c9979fddd28fbbdad9884 Mon Sep 17 00:00:00 2001 From: shaoying Date: Fri, 9 Oct 2020 20:14:28 +0800 Subject: [PATCH] opt some --- go.mod | 2 +- src/relay.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 17ca3b41..dc4ec5c9 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.13 require ( github.com/shylinux/golang-story v0.0.0-00010101000000-000000000000 - github.com/shylinux/icebergs v0.2.7 + github.com/shylinux/icebergs v0.2.9 github.com/shylinux/linux-story v0.0.0-00010101000000-000000000000 github.com/shylinux/mysql-story v0.0.0-00010101000000-000000000000 github.com/shylinux/nginx-story v0.0.0-00010101000000-000000000000 diff --git a/src/relay.go b/src/relay.go index 56b33553..26719045 100644 --- a/src/relay.go +++ b/src/relay.go @@ -9,7 +9,7 @@ import ( ) func main() { - args := []string{"ssh.connect", "open", "authfile", path.Join(os.Getenv("HOME"), ".ssh/relay.json")} + args := []string{"ssh.connect", "open", "authfile", path.Join(os.Getenv("HOME"), ".ssh/"+path.Base(os.Args[0])+".json")} args = append(args, os.Args[1:]...) print(ice.Run(args...)) }