1 From 667665ef140a11851312d33ea5a144cbad06f65b Mon Sep 17 00:00:00 2001
2 From: mzz2017 <mzz@tuta.io>
3 Date: Sun, 24 Apr 2022 21:21:56 +0800
4 Subject: [PATCH 4/4] fix(routing): some outboundTag were not be transformed to
8 service/core/v2ray/v2rayTmpl.go | 15 ++++++++-------
9 1 file changed, 8 insertions(+), 7 deletions(-)
11 diff --git a/service/core/v2ray/v2rayTmpl.go b/service/core/v2ray/v2rayTmpl.go
12 index 1bc6881..e6f4bb0 100644
13 --- a/service/core/v2ray/v2rayTmpl.go
14 +++ b/service/core/v2ray/v2rayTmpl.go
15 @@ -1539,19 +1539,12 @@ func NewTemplate(serverInfos []serverInfo, setting *configure.Setting) (t *Templ
20 - if err = t.setGroupRouting(serverData); err != nil {
23 //set vlessGrpc routing
24 t.setVlessGrpcRouting()
29 - // set spare tire outbound. Fix: https://github.com/v2rayA/v2rayA/issues/447
30 - t.Routing.Rules = append(t.Routing.Rules, coreObj.RoutingRule{Type: "field", Network: "tcp,udp", OutboundTag: "proxy"})
32 // set routing whitelist
34 for _, info := range serverInfos {
35 @@ -1568,6 +1561,14 @@ func NewTemplate(serverInfos []serverInfo, setting *configure.Setting) (t *Templ
37 t.updatePrivateRouting()
39 + // add spare tire outbound routing. Fix: https://github.com/v2rayA/v2rayA/issues/447
40 + t.Routing.Rules = append(t.Routing.Rules, coreObj.RoutingRule{Type: "field", Network: "tcp,udp", OutboundTag: "proxy"})
42 + // Set group routing. This should be put in the end of routing setters.
43 + if err = t.setGroupRouting(serverData); err != nil {
47 t.optimizeGeoipMemoryOccupation()