mirror of
https://github.com/bettercap/bettercap
synced 2025-07-12 08:07:00 -07:00
external resolver
This commit is contained in:
parent
e656a6cbfa
commit
b0a197b377
15 changed files with 1768 additions and 70 deletions
13
zeroconf/utils.go
Normal file
13
zeroconf/utils.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package zeroconf
|
||||
|
||||
import "strings"
|
||||
|
||||
func parseSubtypes(service string) (string, []string) {
|
||||
subtypes := strings.Split(service, ",")
|
||||
return subtypes[0], subtypes[1:]
|
||||
}
|
||||
|
||||
// trimDot is used to trim the dots from the start or end of a string
|
||||
func trimDot(s string) string {
|
||||
return strings.Trim(s, ".")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue