mirror of
https://github.com/bettercap/bettercap
synced 2025-07-05 20:42:09 -07:00
Fix BLE name assignment
This commit is contained in:
parent
e5f8c168c3
commit
786dacf8ca
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ func (d *BLEDevice) Name() string {
|
|||
name := d.DeviceName
|
||||
if name == "" {
|
||||
// get the name from the device
|
||||
name := d.Device.Name()
|
||||
name = d.Device.Name()
|
||||
if name == "" && d.Advertisement != nil {
|
||||
// get the name from the advertisement data
|
||||
name = d.Advertisement.LocalName
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue