This commit is contained in:
serogaq 2024-11-13 13:00:09 +03:00
parent 59330cb3a2
commit b484bfd4cb
No known key found for this signature in database
GPG key ID: 6657A27160536D7E

View file

@ -134,9 +134,9 @@ func GetLogsSniffedDomains(c int) []string {
for i := len(logBuffer) - 1; i >= 0 && len(output) <= c; i-- {
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 {
domain := log[index+2:]
domain := logBuffer[i].log[index+2:]
output = append(output, fmt.Sprintf("%s - %s", logBuffer[i].time, domain))
}
}