Skip to content

Commit

Permalink
logging improve
Browse files Browse the repository at this point in the history
  • Loading branch information
z0rr0 committed Sep 20, 2024
1 parent fd015ff commit 44df462
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gsocks5.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,14 @@ func main() {

addr := net.JoinHostPort(host, fmt.Sprintf("%d", port))
logInfo.Println(versionInfo)

logInfo.Printf(
"timeouts: idle=%v, dns=%v, keepalive=%v, connection=%v\n",
timeoutIdle, timeoutDNS, timeoutKeepAlive, timeoutConn,
)
logInfo.Printf(
"starting server on %q, dns=%q, dns timeoutIdle=%v, cons timeoutIdle=%v, connections=%d, debug=%v, auth=%q\n",
addr, customDNS, timeoutDNS, timeoutIdle, connections, debugMode, authFile,
"starting server on %q, dns=%q, connections=%d, debug=%v, auth=%q\n",
addr, customDNS, connections, debugMode, authFile,
)

params := &server.Params{Addr: addr, Connections: connections, Sigint: sigint}
Expand Down

0 comments on commit 44df462

Please sign in to comment.