Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
IP settings function now
Browse files Browse the repository at this point in the history
  • Loading branch information
10se1ucgo committed Oct 1, 2015
1 parent b3cd154 commit 2cb39e4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions run.py
Expand Up @@ -347,7 +347,7 @@ def go(self, event):
modifyhostfile(undo=undo, domainlist=self.extrapicker.GetSelections(), name="Extra domain block")
if self.ipbox.IsChecked():
logging.info("IP block box ticked")
blockips(undo=undo)
blockips(iplist=self.ippicker.GetSelections(), undo=undo)
if self.defendwifibox.IsChecked():
logging.info("Defender/Wifisense box ticked")
stopdefendwifi(defendersenseval=defendersenseval)
Expand Down Expand Up @@ -432,10 +432,7 @@ def osis64bit():
return False


def blockips(undo):
iplist = ['2.22.61.43', '2.22.61.66', '65.39.117.230', '65.55.108.23', '23.218.212.69',
'134.170.30.202', '137.116.81.24', '157.56.106.189', '204.79.197.200', '65.52.108.33']

def blockips(iplist, undo):
if not undo:
try:
for ip in iplist:
Expand Down

0 comments on commit 2cb39e4

Please sign in to comment.