This commit is contained in:
WJQSERVER 2024-10-16 12:48:02 +08:00
parent ac859c39a6
commit 2187514da7
5 changed files with 28 additions and 7 deletions

View file

@ -117,7 +117,8 @@ func NoRouteHandler(cfg *config.Config) gin.HandlerFunc {
func ProxyRequest(c *gin.Context, u string, cfg *config.Config, mode string) {
method := c.Request.Method
logInfo("%s %s", method, u)
// 记录 IP Method URL UA
logInfo("%s %s %s %s", c.ClientIP(), method, u, c.Request.Header.Get("User-Agent"))
client := createHTTPClient(mode)