mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-21 13:19:10 +07:00
feat: add MPTCP support (#601)
This commit is contained in:
@ -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()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user