fix: fixed a bug when AttEcodeSuccess was returned as an error by the gatt lib (fixes #498)

This commit is contained in:
evilsocket 2019-03-26 14:33:14 +01:00
commit 7d46e7aa7a
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -67,7 +67,8 @@ func (mod *BLERecon) onPeriphConnected(p gatt.Peripheral, err error) {
mod.Info("connected, enumerating all the things for %s!", p.ID())
services, err := p.DiscoverServices(nil)
if err != nil {
// https://github.com/bettercap/bettercap/issues/498
if err != nil && err.Error() != "success" {
mod.Error("error discovering services: %s", err)
return
}