mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 16:57:08 +00:00
style: change file path for pass_stats in statistics
This commit is contained in:
parent
9c20574418
commit
5a1d10af8f
@ -12,7 +12,7 @@ if rewrite_stats_file then
|
|||||||
end
|
end
|
||||||
|
|
||||||
local pass_stats = {}
|
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
|
if pass_stats_file then
|
||||||
for line in pass_stats_file:lines() do
|
for line in pass_stats_file:lines() do
|
||||||
local host, count, ua = line:match("^(%S+)%s(%d+)%s(.+)$")
|
local host, count, ua = line:match("^(%S+)%s(%d+)%s(.+)$")
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
const passthroughStatsFile = "/var/log/ua3f/passthrough_stats"
|
const passthroughStatsFile = "/var/log/ua3f/pass_stats"
|
||||||
|
|
||||||
type PassThroughRecord struct {
|
type PassThroughRecord struct {
|
||||||
Host string
|
Host string
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user