mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
balls
This commit is contained in:
parent
5932267ffb
commit
3b97e5eb3a
1 changed files with 1 additions and 2 deletions
|
@ -60,8 +60,7 @@ func FindInterface(name string) (*Endpoint, error) {
|
|||
// Also search by ip if needed.
|
||||
if name != "" {
|
||||
for _, a := range addrs {
|
||||
fmt.Printf("a.String()='%s' name='%s'\n", a.String(), name)
|
||||
if a.String() == name {
|
||||
if a.String() == name || strings.HasPrefix(a.String(), name) {
|
||||
doCheck = true
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue