feat: add MPTCP support (#601)

This commit is contained in:
秋野かえで
2024-08-27 09:49:51 +08:00
committed by GitHub
parent 18b657083f
commit c5b596c293
12 changed files with 35 additions and 32 deletions

View File

@ -469,13 +469,14 @@ nextLink:
return Deduplicate(defaultIfs), nil
}
func MagicNetwork(network string, mark uint32) string {
if mark == 0 {
func MagicNetwork(network string, mark uint32, mptcp bool) string {
if mark == 0 && !mptcp {
return network
} else {
return netproxy.MagicNetwork{
Network: network,
Mark: mark,
Mptcp: mptcp,
}.Encode()
}
}