修改文件保存路径设置

This commit is contained in:
影舞者 2022-11-30 10:49:02 +08:00
parent 27c7e3977e
commit 6c6f522bc9
2 changed files with 41 additions and 50 deletions

View File

@ -7,8 +7,6 @@ import (
"fmt" "fmt"
"net/url" "net/url"
"os" "os"
"os/exec"
"path/filepath"
"strconv" "strconv"
"strings" "strings"
) )
@ -137,13 +135,7 @@ func ParseInput(Info *HostInfo) {
if BruteThread <= 0 { if BruteThread <= 0 {
BruteThread = 1 BruteThread = 1
} }
if TmpOutputfile != "" {
if !strings.Contains(TmpOutputfile, "/") && !strings.Contains(TmpOutputfile, `\`) {
Outputfile = getpath() + TmpOutputfile
} else {
Outputfile = TmpOutputfile
}
}
if TmpSave == true { if TmpSave == true {
IsSave = false IsSave = false
} }

View File

@ -70,7 +70,6 @@ var (
Proxy string Proxy string
Timeout int64 = 3 Timeout int64 = 3
WebTimeout int64 = 5 WebTimeout int64 = 5
TmpOutputfile string
TmpSave bool TmpSave bool
NoPing bool NoPing bool
Ping bool Ping bool