Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend stats reporting to support custom load-balanced configs with several outbounds #5225

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

OnceUponATimeInAmerica
Copy link
Contributor

@OnceUponATimeInAmerica OnceUponATimeInAmerica commented Jun 13, 2024

Hello
This pull request makes simple modifications (to a single file) to allow correct stats reporting and display for custom (json) configs with several outbounds (matches any outbound tags starting with proxy instead of exact match).

Custom (json) configs with several outbounds are used in load-balanced configs. Because now there are several outbounds, a single proxy tag will not suffice and the outbounds might have to be be tagged as proxy1, proxy2, proxy_1, proxy_2, etc. The current v2rayN version cannot handle these cases and reports nothing for their traffic.

This pull request remedies the situation by simply aggregating traffic for all such matching outbounds (separately, of course, for uplink and down-link). It was tested and confirmed to work with existing normal configs, custom configs and new load-balanced (multi-outbound) configs.

Thank you.

…lanced outbounds in them, with tags starting with "proxy" e.g. proxy1, proxy2 (fully compatible with existing configs)
@2dust 2dust merged commit 1ff88d2 into 2dust:master Jun 20, 2024
@OnceUponATimeInAmerica
Copy link
Contributor Author

Thanks for merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants