feat: support real process name traffic split (#6)

This commit is contained in:
mzz
2023-02-04 11:24:03 +08:00
committed by GitHub
parent 0793534f72
commit b117dfa7d5
13 changed files with 178 additions and 74 deletions

View File

@ -106,7 +106,7 @@ func init() {
func SoMarkControl(c syscall.RawConn) error {
return c.Control(func(fd uintptr) {
//TODO: force to set 0xff. any chances to customize this value?
err := syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, fwmarkIoctl, 0x80)
err := syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, fwmarkIoctl, 0x100)
if err != nil {
return
}