mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -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
|
name := d.DeviceName
|
||||||
if name == "" {
|
if name == "" {
|
||||||
// get the name from the device
|
// get the name from the device
|
||||||
name := d.Device.Name()
|
name = d.Device.Name()
|
||||||
if name == "" && d.Advertisement != nil {
|
if name == "" && d.Advertisement != nil {
|
||||||
// get the name from the advertisement data
|
// get the name from the advertisement data
|
||||||
name = d.Advertisement.LocalName
|
name = d.Advertisement.LocalName
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue