From 2a971a3241deaf48a06992535bdbe89e3768bed0 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 15 Feb 2013 20:24:56 +0100 Subject: [PATCH] fix --- system/PlcapiUrlScanner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/PlcapiUrlScanner.py b/system/PlcapiUrlScanner.py index 119aea0..c790bd9 100755 --- a/system/PlcapiUrlScanner.py +++ b/system/PlcapiUrlScanner.py @@ -41,8 +41,8 @@ class PlcapiUrlScanner: if self.verbose: traceback.print_exc() return False - def try_url_expected (self, url, required): - result=self.try_url(url)==expected + def try_url_required (self, url, required): + result=self.try_url(url) if required and not result: return False else: return True @@ -56,7 +56,7 @@ class PlcapiUrlScanner: if protocol=='https' and port==':80': continue required = (protocol=='https') and (path=='PLCAPI/') url="%s://%s%s/%s"%(protocol,dest,port,path) - if not self.try_url_expected (url,required): overall=False + if not self.try_url_required (url,required): overall=False return overall from optparse import OptionParser -- 2.43.0