feat: add address and port resolution options
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package tui
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"regexp"
|
||||
"github.com/karol-broda/snitch/internal/collector"
|
||||
"strings"
|
||||
@@ -44,10 +43,3 @@ func sortFieldLabel(f collector.SortField) string {
|
||||
}
|
||||
}
|
||||
|
||||
func formatRemote(addr string, port int) string {
|
||||
if addr == "" || addr == "*" || port == 0 {
|
||||
return "-"
|
||||
}
|
||||
return fmt.Sprintf("%s:%d", addr, port)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user