mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-05-03 21:58:47 +00:00
2 / fix
This commit is contained in:
parent
59330cb3a2
commit
b484bfd4cb
1 changed files with 2 additions and 2 deletions
|
@ -134,9 +134,9 @@ func GetLogsSniffedDomains(c int) []string {
|
||||||
|
|
||||||
for i := len(logBuffer) - 1; i >= 0 && len(output) <= c; i-- {
|
for i := len(logBuffer) - 1; i >= 0 && len(output) <= c; i-- {
|
||||||
if logBuffer[i].level <= logLevel && strings.Contains(logBuffer[i].log, "sniffed domain: ") {
|
if logBuffer[i].level <= logLevel && strings.Contains(logBuffer[i].log, "sniffed domain: ") {
|
||||||
index := strings.LastIndex(log, ": ")
|
index := strings.LastIndex(logBuffer[i].log, ": ")
|
||||||
if index != -1 {
|
if index != -1 {
|
||||||
domain := log[index+2:]
|
domain := logBuffer[i].log[index+2:]
|
||||||
output = append(output, fmt.Sprintf("%s - %s", logBuffer[i].time, domain))
|
output = append(output, fmt.Sprintf("%s - %s", logBuffer[i].time, domain))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue