From 98969cee5e37d56d74a70d54c3c5898b41aae60a Mon Sep 17 00:00:00 2001 From: SunBK201 Date: Mon, 3 Nov 2025 15:29:18 +0800 Subject: [PATCH] style: change file path for pass_stats in statistics --- openwrt/files/luci/statistics.htm | 2 +- src/internal/statistics/pass.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openwrt/files/luci/statistics.htm b/openwrt/files/luci/statistics.htm index c4c840c..3b8591d 100644 --- a/openwrt/files/luci/statistics.htm +++ b/openwrt/files/luci/statistics.htm @@ -12,7 +12,7 @@ if rewrite_stats_file then end local pass_stats = {} -local pass_stats_file = io.open("/var/log/ua3f/passthrough_stats", "r") +local pass_stats_file = io.open("/var/log/ua3f/pass_stats", "r") if pass_stats_file then for line in pass_stats_file:lines() do local host, count, ua = line:match("^(%S+)%s(%d+)%s(.+)$") diff --git a/src/internal/statistics/pass.go b/src/internal/statistics/pass.go index 78e575f..a19b71b 100644 --- a/src/internal/statistics/pass.go +++ b/src/internal/statistics/pass.go @@ -8,7 +8,7 @@ import ( "github.com/sirupsen/logrus" ) -const passthroughStatsFile = "/var/log/ua3f/passthrough_stats" +const passthroughStatsFile = "/var/log/ua3f/pass_stats" type PassThroughRecord struct { Host string