mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
new: http parser
This commit is contained in:
parent
27b1f48584
commit
c98191c43e
4 changed files with 56 additions and 0 deletions
|
@ -48,3 +48,13 @@ func vPort(p interface{}) string {
|
|||
|
||||
return sp
|
||||
}
|
||||
|
||||
var maxUrlSize = 40
|
||||
|
||||
func vURL(u string) string {
|
||||
ul := len(u)
|
||||
if ul > maxUrlSize {
|
||||
u = fmt.Sprintf("%s...", u[0:maxUrlSize-3])
|
||||
}
|
||||
return u
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue