-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add server option to disable logging of client ips #266
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe anonymity or some other meaning full and briefly flag name.
cmd/shadowsocks-server/server.go
Outdated
@@ -404,6 +413,7 @@ func main() { | |||
flag.StringVar(&cmdConfig.Method, "m", "", "encryption method, default: aes-256-cfb") | |||
flag.IntVar(&core, "core", 0, "maximum number of CPU cores to use, default is determinied by Go runtime") | |||
flag.BoolVar((*bool)(&debug), "d", false, "print debug message") | |||
flag.BoolVar((*bool)(&sanitizeIps), "noip-log", false, "suppress client ip addresses in all output") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noip-log is not a good flag name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arthurkiller Which do you prefer?
sanitize-ips
no-ips
privacy-log
Edit:
or a one letter flag like -P
or -x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think xxx-xxx
is not a good idea. maybe -A
means anonymity or -anonymity
is better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after this, you'd better resolve the conflicts locally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arthurkiller Ok, I''ll change it to -A
.
What would you prefer instead of x.x.x.x:zzzz
? The idea is to not change the output too much to make log parsing scripts difficult to write.
No idea. Let it go😂
Best regards
✉️✉️✉️✉️✉️✉️✉️✉️✉️✉️✉️✉️✉️✉️
Arthur lee
Sent from my iPhone
… On 17 Feb 2018, at 6:46 PM, Abel Luck ***@***.***> wrote:
@abeluck commented on this pull request.
In cmd/shadowsocks-server/server.go:
> @@ -404,6 +413,7 @@ func main() {
flag.StringVar(&cmdConfig.Method, "m", "", "encryption method, default: aes-256-cfb")
flag.IntVar(&core, "core", 0, "maximum number of CPU cores to use, default is determinied by Go runtime")
flag.BoolVar((*bool)(&debug), "d", false, "print debug message")
+ flag.BoolVar((*bool)(&sanitizeIps), "noip-log", false, "suppress client ip addresses in all output")
@arthurkiller Ok, I''ll change it to -A The idea is to not change the output too much to make log parsing scripts difficult to write.
What would you prefer instead of x.x.x.x:zzzz?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@abeluck Dude will you fix the flag? Or I will close this PR |
Sorry about the delay @arthurkiller
|
lgtm |
fixes #265