1
0

add scanner for unknown prds

This commit is contained in:
thurask
2017-09-25 22:13:25 -04:00
parent 25f7a6f350
commit c7f3e7bcaa
2 changed files with 46 additions and 2 deletions
+3 -2
View File
@@ -81,8 +81,9 @@ class FotaCheck:
]
return random.choice(master_servers)
def do_check(self):
url = "https://" + self.g2master + "/check.php"
def do_check(self, https=True):
protocol = "https://" if https else "http://"
url = protocol + self.g2master + "/check.php"
params = OrderedDict()
params["id"] = self.serid
params["curef"] = self.curef