Skip to content

Commit 3d44bc6

Browse files
committed
feat: add support for balancers in XRayConfig snippets
1 parent 9e8335d commit 3d44bc6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/common/helpers/xray-config/xray-config.validator.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,9 @@ export class XRayConfig {
496496
if (typeof this.config.routing === 'object' && 'rules' in this.config.routing) {
497497
this.replaceSnippetsInArray(this.config.routing.rules as any[], snippets);
498498
}
499+
if (typeof this.config.routing === 'object' && 'balancers' in this.config.routing) {
500+
this.replaceSnippetsInArray(this.config.routing.balancers as any[], snippets);
501+
}
499502
}
500503
}
501504

0 commit comments

Comments
 (0)