Fix a bug that would pair a local and cloud printer when they were not the same

This commit is contained in:
ChrisTerBeke 2019-07-31 12:27:33 +02:00
parent 60d47fcbad
commit 7147c788ef
2 changed files with 4 additions and 3 deletions

View file

@ -128,7 +128,7 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
return True
# However, for manually added printers, the local IP address is used in lieu of a proper
# network key, so check for that as well
if self.clusterData.host_internal_ip is not None and network_key.find(self.clusterData.host_internal_ip):
if self.clusterData.host_internal_ip is not None and network_key in self.clusterData.host_internal_ip:
return True
return False