From f8b44e37eaa38db4e14a1c8fc0fdebb6df6b371d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=B1=E8=88=9E=E8=80=85?= Date: Mon, 21 Nov 2022 15:04:35 +0800 Subject: [PATCH] update --- common/Parse.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/Parse.go b/common/Parse.go index 1eebb27..30af3d1 100644 --- a/common/Parse.go +++ b/common/Parse.go @@ -137,7 +137,6 @@ func ParseInput(Info *HostInfo) { if BruteThread <= 0 { BruteThread = 1 } - if TmpOutputfile != "" { if !strings.Contains(TmpOutputfile, "/") && !strings.Contains(TmpOutputfile, `\`) { Outputfile = getpath() + TmpOutputfile @@ -145,7 +144,6 @@ func ParseInput(Info *HostInfo) { Outputfile = TmpOutputfile } } - if TmpSave == true { IsSave = false } @@ -280,12 +278,12 @@ func getpath() string { var path string if strings.Contains(filename, "/") { tmp := strings.Split(filename, `/`) - tmp[len(tmp)-1] = `` path = strings.Join(tmp, `/`) + path += `/` } else if strings.Contains(filename, `\`) { tmp := strings.Split(filename, `\`) - tmp[len(tmp)-1] = `` path = strings.Join(tmp, `\`) + path += `\` } return path }