This commit is contained in:
影舞者 2022-11-21 15:04:35 +08:00
parent 1d2fa6c470
commit f8b44e37ea
1 changed files with 2 additions and 4 deletions

View File

@ -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
}