Allow MinerFactory to take a list of discrete IPs (#7)

This commit is contained in:
Colin Crossman
2022-05-18 20:16:47 -06:00
committed by GitHub
parent ed89476866
commit e4207e0120
2 changed files with 23 additions and 16 deletions

View File

@@ -34,6 +34,8 @@ class MinerNetwork:
if "-" in self.ip_addr:
self.network = MinerNetworkRange(self.ip_addr)
elif isinstance(self.ip_addr, list):
self.network = MinerNetworkRange(self.ip_addr)
else:
# if there is no IP address passed, default to 192.168.1.0
if not self.ip_addr: