Skip to content

Commit

Permalink
improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
z0rr0 committed Jan 19, 2024
1 parent 8a45479 commit bedca8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gsocks5.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ func main() {
versionInfo := fmt.Sprintf("%v: %v %v %v %v", name, Version, Revision, GoVersion, BuildDate)
if version {
fmt.Println(versionInfo)
flag.PrintDefaults()
return
}
if debugMode {
Expand Down Expand Up @@ -103,6 +102,7 @@ func main() {
}

addr := net.JoinHostPort(host, fmt.Sprintf("%d", port))
logInfo.Println(versionInfo)
logInfo.Printf(
"starting server on %q, dns=%q, timeout=%v, concurrent=%d, debug=%v, auth=%q\n",
addr, customDNS, timeoutDNS, concurrent, debugMode, authFile,
Expand Down

0 comments on commit bedca8d

Please sign in to comment.