diff --git a/adapter/outbound/http.go b/adapter/outbound/http.go index 7f480ce6..44dc705a 100644 --- a/adapter/outbound/http.go +++ b/adapter/outbound/http.go @@ -136,6 +136,7 @@ func NewHttp(option HttpOption) *Http { addr: net.JoinHostPort(option.Server, strconv.Itoa(option.Port)), tp: C.Http, iface: option.Interface, + rmark: option.RoutingMark, }, user: option.UserName, pass: option.Password, diff --git a/adapter/outbound/shadowsocks.go b/adapter/outbound/shadowsocks.go index 71b4ae5e..d80c7962 100644 --- a/adapter/outbound/shadowsocks.go +++ b/adapter/outbound/shadowsocks.go @@ -160,6 +160,7 @@ func NewShadowSocks(option ShadowSocksOption) (*ShadowSocks, error) { tp: C.Shadowsocks, udp: option.UDP, iface: option.Interface, + rmark: option.RoutingMark, }, cipher: ciph, diff --git a/adapter/outbound/shadowsocksr.go b/adapter/outbound/shadowsocksr.go index d244df40..a5f07ef6 100644 --- a/adapter/outbound/shadowsocksr.go +++ b/adapter/outbound/shadowsocksr.go @@ -142,6 +142,7 @@ func NewShadowSocksR(option ShadowSocksROption) (*ShadowSocksR, error) { tp: C.ShadowsocksR, udp: option.UDP, iface: option.Interface, + rmark: option.RoutingMark, }, cipher: coreCiph, obfs: obfs, diff --git a/adapter/outbound/snell.go b/adapter/outbound/snell.go index d90922ea..07f3d89d 100644 --- a/adapter/outbound/snell.go +++ b/adapter/outbound/snell.go @@ -142,6 +142,7 @@ func NewSnell(option SnellOption) (*Snell, error) { tp: C.Snell, udp: option.UDP, iface: option.Interface, + rmark: option.RoutingMark, }, psk: psk, obfsOption: obfsOption, diff --git a/adapter/outbound/socks5.go b/adapter/outbound/socks5.go index d81c7614..398ee3b2 100644 --- a/adapter/outbound/socks5.go +++ b/adapter/outbound/socks5.go @@ -154,6 +154,7 @@ func NewSocks5(option Socks5Option) *Socks5 { tp: C.Socks5, udp: option.UDP, iface: option.Interface, + rmark: option.RoutingMark, }, user: option.UserName, pass: option.Password, diff --git a/adapter/outbound/trojan.go b/adapter/outbound/trojan.go index 35dbea1e..064cd3c2 100644 --- a/adapter/outbound/trojan.go +++ b/adapter/outbound/trojan.go @@ -173,6 +173,7 @@ func NewTrojan(option TrojanOption) (*Trojan, error) { tp: C.Trojan, udp: option.UDP, iface: option.Interface, + rmark: option.RoutingMark, }, instance: trojan.New(tOption), option: &option, diff --git a/adapter/outbound/vmess.go b/adapter/outbound/vmess.go index 313aa5d6..ea3681a3 100644 --- a/adapter/outbound/vmess.go +++ b/adapter/outbound/vmess.go @@ -280,6 +280,7 @@ func NewVmess(option VmessOption) (*Vmess, error) { tp: C.Vmess, udp: option.UDP, iface: option.Interface, + rmark: option.RoutingMark, }, client: client, option: &option,