Set some meta data before switching active stacks, fix manual added device pairing

This commit is contained in:
ChrisTerBeke 2019-10-01 19:31:35 +02:00
parent 609ceed140
commit c3d846440d
No known key found for this signature in database
GPG key ID: A49F1AB9D7E0C263
3 changed files with 17 additions and 16 deletions

View file

@ -127,8 +127,8 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
if network_key.startswith(self.clusterData.host_name):
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 in self.clusterData.host_internal_ip:
# network key, so check for that as well. It is in the format "manual:10.1.10.1".
if network_key.endswith(self.clusterData.host_internal_ip):
return True
return False