mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 08:44:29 +00:00
style: change file path for pass_stats in statistics
This commit is contained in:
parent
38591c2743
commit
98969cee5e
@ -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(.+)$")
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user