Fix network debug formatting

This commit is contained in:
Daniel 2021-03-21 21:49:37 +01:00
parent bc341b60c0
commit 60bdea7c50
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ import (
// start starts the interception.
func start(_ chan packet.Packet) error {
log.Info("interception: this platform has no support for packet interception - a lot of functionality will be broken")
log.Critical("interception: this platform has no support for packet interception - a lot of functionality will be broken")
return nil
}

View file

@ -208,7 +208,7 @@ func buildNetworkDebugInfoData(debugConns []*Connection) string {
func (conn *Connection) debugInfoLine() string {
var connectionData string
if conn.Type == DNSRequest { // conn.ID !=
if conn.Type == IPConnection {
// Format IP/Port pair for connections.
connectionData = fmt.Sprintf(
"% 15s:%- 5s %s % 15s:%- 5s",