Skip to content

Log: Add MaskAddress option to hide IP addresses#3783

Merged
yuhan6665 merged 2 commits intomainfrom
MaskAddress
Sep 11, 2024
Merged

Log: Add MaskAddress option to hide IP addresses#3783
yuhan6665 merged 2 commits intomainfrom
MaskAddress

Conversation

@Fangliding
Copy link
Member

@Fangliding Fangliding commented Sep 9, 2024

for #2521
用例

  "log": {
      "loglevel": "debug",
      "maskAddress": "quarter"
  }

log中将会自动替换IP地址 用于在分享日志(比如发issue或者截图)的时候保护隐私
目前的可选项 half quarter full
对应
ipv4 1.2.*.* 1.*.*.* [Masked IPv4]
ipv6 1234:5678::/32 1234::/16 [Masked IPv6]

@yuhan6665 yuhan6665 changed the title 为log添加屏蔽IP选项 Log: Add MaskAddress option to hide IP addresses Sep 11, 2024
@yuhan6665 yuhan6665 merged commit a247997 into main Sep 11, 2024
@yuhan6665
Copy link
Member

感谢佬!

Fangliding added a commit to XTLS/Xray-docs-next that referenced this pull request Sep 11, 2024
leninalive pushed a commit to amnezia-vpn/amnezia-xray-core that referenced this pull request Oct 29, 2024
* Log: Add maskAddress option

* Correct IPv6 subnet
@yuhan6665 yuhan6665 deleted the MaskAddress branch November 4, 2024 17:51
@xcode75 xcode75 mentioned this pull request Nov 13, 2024
4 tasks
it2konst pushed a commit to it2konst/gametunnel-core that referenced this pull request Mar 1, 2026
* Log: Add maskAddress option

* Correct IPv6 subnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants