Skip to content

Commit

Permalink
Search for success message instead of error when portchecking
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed May 24, 2017
1 parent ed11ae2 commit 89bb12d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/File/FileServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def testOpenportPortchecker(self, port=None):
message = "Error: %s" % Debug.formatException(err)
data = ""

if "closed" in message or "Error" in message:
if "open" not in message:
if config.tor != "always":
self.log.info("[BAD :(] Port closed: %s" % message)
if port == self.port:
Expand Down Expand Up @@ -137,7 +137,7 @@ def testOpenportCanyouseeme(self, port=None):
except Exception, err:
message = "Error: %s" % Debug.formatException(err)

if "Error" in message:
if "Success" not in message:
if config.tor != "always":
self.log.info("[BAD :(] Port closed: %s" % message)
if port == self.port:
Expand Down

0 comments on commit 89bb12d

Please sign in to comment.