chore: better log
This commit is contained in:
parent
a707db90f4
commit
643979800c
1 changed files with 4 additions and 4 deletions
|
@ -101,13 +101,13 @@ func (sd *SnifferDispatcher) replaceDomain(metadata *C.Metadata, host string) {
|
||||||
}
|
}
|
||||||
originHost := metadata.Host
|
originHost := metadata.Host
|
||||||
if originHost != host {
|
if originHost != host {
|
||||||
log.Infoln("[Sniffer] Sniff TCP [%s:%s]-->[%s:%s] success, replace domain [%s]-->[%s]",
|
log.Infoln("[Sniffer] Sniff TCP [%s]-->[%s:%s] success, replace domain [%s]-->[%s]",
|
||||||
metadata.SrcIP, metadata.SrcPort,
|
metadata.SourceDetail(),
|
||||||
dstIP, metadata.DstPort,
|
dstIP, metadata.DstPort,
|
||||||
metadata.Host, host)
|
metadata.Host, host)
|
||||||
} else {
|
} else {
|
||||||
log.Debugln("[Sniffer] Sniff TCP [%s:%s]-->[%s:%s] success, replace domain [%s]-->[%s]",
|
log.Debugln("[Sniffer] Sniff TCP [%s]-->[%s:%s] success, replace domain [%s]-->[%s]",
|
||||||
metadata.SrcIP, metadata.SrcPort,
|
metadata.SourceDetail(),
|
||||||
dstIP, metadata.DstPort,
|
dstIP, metadata.DstPort,
|
||||||
metadata.Host, host)
|
metadata.Host, host)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue