things-go / go-socks5

socks5 server in pure Golang with much custom optional. Full TCP/UDP and IPv4/IPv6 support.
MIT License
368 stars 59 forks source link

如何在每个request中打印username? #11

Closed shuaiyy closed 1 year ago

shuaiyy commented 1 year ago

出于安全审计需要,如何在用户每次请求时,打印 时间、username,源ip和目标ip?

thinkgos commented 1 year ago

简单点就在 ruleset 做, 那个可以自己写. 那个有request 的上下文

shuaiyy commented 1 year ago

简单点就在 ruleset 做, 那个可以自己写. 那个有request 的上下文 谢谢大佬,通过ruleset可以实现