diff options
-rw-r--r-- | src/bluetooth/qbluetoothserver_bluez.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothserver_bluez.cpp b/src/bluetooth/qbluetoothserver_bluez.cpp index 1ee055de..e5967f7a 100644 --- a/src/bluetooth/qbluetoothserver_bluez.cpp +++ b/src/bluetooth/qbluetoothserver_bluez.cpp @@ -160,7 +160,7 @@ bool QBluetoothServer::listen(const QBluetoothAddress &address, quint16 port) if (!address.isNull()) convertAddress(address.toUInt64(), addr.rc_bdaddr.b); else - convertAddress(Q_UINT64_C(0), addr.rc_bdaddr.b); + convertAddress(device.address().toUInt64(), addr.rc_bdaddr.b); if (::bind(sock, reinterpret_cast<sockaddr *>(&addr), sizeof(sockaddr_rc)) < 0) { |