Skip to content

Commit 8d191d7

Browse files
committed
Allow scanner to work even without GCM
1 parent a3cb697 commit 8d191d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tinytuya/scanner.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ def get_ip_to_broadcast():
213213
def send_discovery_request( iface_list=None ):
214214
close_sockets = False
215215

216+
if not tinytuya.AESCipher.CRYPTOLIB_HAS_GCM:
217+
# GCM is required for discovery requests
218+
return False
219+
216220
if not iface_list:
217221
close_sockets = True
218222
iface_list = {}

0 commit comments

Comments
 (0)