Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Add server option to disable logging of client ips #266

Merged
merged 2 commits into from
Mar 26, 2018

Conversation

abeluck
Copy link
Contributor

@abeluck abeluck commented Feb 14, 2018

fixes #265

Copy link
Collaborator

@arthurkiller arthurkiller left a 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.

@@ -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")
Copy link
Collaborator

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

Copy link
Contributor Author

@abeluck abeluck Feb 15, 2018

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

Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Contributor Author

@abeluck abeluck Feb 17, 2018

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.

@arthurkiller
Copy link
Collaborator

arthurkiller commented Feb 17, 2018 via email

@arthurkiller
Copy link
Collaborator

@abeluck Dude will you fix the flag? Or I will close this PR

@abeluck
Copy link
Contributor Author

abeluck commented Mar 26, 2018

Sorry about the delay @arthurkiller

  • changed the flag to -A
  • rebased against master

@arthurkiller
Copy link
Collaborator

lgtm

@arthurkiller arthurkiller merged commit 924943c into shadowsocks:master Mar 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to disable logging of client ips
2 participants