Skip to content

Conversation

@rp-hello
Copy link

@rp-hello rp-hello commented Mar 31, 2024

只占用SO_MASK从右开始第1、2 bit,防止与路由器其他使用SO_MASK的功能冲突

  • 如果像原来那样,直接set-mark,有可能会清掉其他软件设置的mask,所以我们使用--set-mask 0x1/0x3
  • 这样,一方面,即使其他软件不管如何修改mask的其他位,都不会影响v2ray的tproxy代理
  • 另一方面,v2ray在整个代理过程中,也仅仅会修改从右开始的1、2 bit,其他位也不会去动

@rp-hello rp-hello force-pushed the patch-3 branch 5 times, most recently from 763b68c to af526e4 Compare March 31, 2024 18:05
@rp-hello rp-hello force-pushed the patch-3 branch 2 times, most recently from fd13f15 to d840e05 Compare April 8, 2024 16:03
@rp-hello
Copy link
Author

rp-hello commented Apr 9, 2024

Could you review this PR? @nicholascw

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.

1 participant