[GH-ISSUE #366] --log 参数不能正确记录log文件 #277

Closed
opened 2026-02-27 23:16:18 +03:00 by kerem · 0 comments
Owner

Originally created by @chmis8000 on GitHub (May 1, 2020).
Original GitHub issue: https://github.com/snail007/goproxy/issues/366

Context (Environment)

  1. proxy version is : v9.2
  2. full command is 👍 proxy tcp -p ":7792" -T tcp -P "123.207.xxx.xxx:3310" --C --log proxy.log
  3. system is :win8.1

Detailed Description

以上,如果本地的端口7792已经被占用,log文件只记录了:
2020/05/01 23:03:14 use tcp parent [123.207.xxx.xxx:3310]
而控制台输出了错误内容:
2020/05/01 23:09:21 err : run service [tcp:tcp] fail, ERR:tcp servcie fail, ERR:
listen tcp :7792: bind: Only one usage of each socket address (protocol/network
address/port) is normally permitted.
期望 只要指定log文件,将错误信息都写到log中

Originally created by @chmis8000 on GitHub (May 1, 2020). Original GitHub issue: https://github.com/snail007/goproxy/issues/366 ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> 1. proxy version is : v9.2 1. full command is :+1: proxy tcp -p ":7792" -T tcp -P "123.207.xxx.xxx:3310" --C --log proxy.log 1. system is :win8.1 ## Detailed Description 以上,如果本地的端口7792已经被占用,log文件只记录了: 2020/05/01 23:03:14 use tcp parent [123.207.xxx.xxx:3310] 而控制台输出了错误内容: 2020/05/01 23:09:21 err : run service [tcp:tcp] fail, ERR:tcp servcie fail, ERR: listen tcp :7792: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted. 期望 只要指定log文件,将错误信息都写到log中
kerem closed this issue 2026-02-27 23:16:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#277
No description provided.