fix: get client reverse tag in the outbound

This commit is contained in:
MHSanaei
2026-05-06 00:43:47 +02:00
parent 8bea0fde2b
commit 50603fd430
5 changed files with 38 additions and 6 deletions

View File

@@ -204,6 +204,13 @@
if (app.enableDNS && !ObjectUtil.isEmpty(app.dnsTag)) this.inboundTags.push(app.dnsTag)
this.outboundTags = ["", ...app.templateSettings.outbounds.filter((o) => !ObjectUtil.isEmpty(o.tag)).map(obj =>
obj.tag)];
if (app.clientReverseTags) {
app.clientReverseTags.forEach(tag => {
if (tag && !this.outboundTags.includes(tag)) {
this.outboundTags.push(tag);
}
});
}
this.balancerTags = [""];
if (app.templateSettings.routing && app.templateSettings.routing.balancers) {
this.balancerTags = ["", ...app.templateSettings.routing.balancers.filter((o) => !ObjectUtil.isEmpty(o.tag))