Skip to content

Commit 9c014b7

Browse files
committed
feat(client): log SOCKS5 authentication credentials during startup
- Add conditional logging for SOCKS5_USER and SOCKS5_PASS when authentication is enabled.
1 parent 196e298 commit 9c014b7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cmd/client/main.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ func main() {
101101
cfg.ListenIP,
102102
cfg.ListenPort,
103103
)
104+
if cfg.SOCKS5Auth {
105+
log.Infof(
106+
"\U0001F510 <green>Local SOCKS5 Auth User: <cyan>%s</cyan></green>",
107+
cfg.SOCKS5User,
108+
)
109+
log.Infof(
110+
"\U0001F511 <green>Local SOCKS5 Auth Pass: <cyan>%s</cyan></green>",
111+
cfg.SOCKS5Pass,
112+
)
113+
}
104114
}
105115

106116
log.Infof(

0 commit comments

Comments
 (0)