op-packages/teleproxy/patches/0002-fix-mips-variable.patch
2026-04-23 03:02:20 +08:00

18 lines
777 B
Diff

Index: teleproxy/src/mtproto/mtproto-proxy-stats.c
===================================================================
--- teleproxy.orig/src/mtproto/mtproto-proxy-stats.c
+++ teleproxy/src/mtproto/mtproto-proxy-stats.c
@@ -602,9 +602,9 @@ void mtfront_prepare_stats (stats_buffer
if (_quota > 0) {
sb_printf (sb, "secret_%s_quota\t%lld\n", _lbl, _quota);
}
- int _mips = tcp_rpcs_get_ext_secret_max_ips (_i);
- if (_mips > 0) {
- sb_printf (sb, "secret_%s_max_ips\t%d\n", _lbl, _mips);
+ int _mips_ips = tcp_rpcs_get_ext_secret_max_ips (_i);
+ if (_mips_ips > 0) {
+ sb_printf (sb, "secret_%s_max_ips\t%d\n", _lbl, _mips_ips);
}
int64_t _exp = tcp_rpcs_get_ext_secret_expires (_i);
if (_exp > 0) {