mirror of
https://github.com/rscmbbng/Border-Check.git
synced 2024-12-25 21:41:28 +01:00
fixed webbrowser automatic opening
This commit is contained in:
parent
a8815cfe74
commit
fbaf7230ff
11
main.py
11
main.py
@ -279,7 +279,7 @@ class bc(object):
|
|||||||
print "Trace:", count, "->", "Not allowed"
|
print "Trace:", count, "->", "Not allowed"
|
||||||
count+=1
|
count+=1
|
||||||
logfile.close()
|
logfile.close()
|
||||||
self.old_url = url
|
self.old_url = url
|
||||||
|
|
||||||
def getGEO(self):
|
def getGEO(self):
|
||||||
"""
|
"""
|
||||||
@ -342,13 +342,14 @@ class bc(object):
|
|||||||
t = threading.Thread(target=BorderCheckWebserver, args=(self, ))
|
t = threading.Thread(target=BorderCheckWebserver, args=(self, ))
|
||||||
t.start()
|
t.start()
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
try:
|
|
||||||
webbrowser.get(self.browser_path).open('http://127.0.0.1:8080', new=1)
|
|
||||||
except:
|
|
||||||
print "Error: Browser is not responding correctly.\n"
|
|
||||||
except:
|
except:
|
||||||
print "Error: unable to start thread"
|
print "Error: unable to start thread"
|
||||||
pass
|
pass
|
||||||
|
# open same browser of history access on a new tab
|
||||||
|
try:
|
||||||
|
webbrowser.get(self.browser_path).open('http://127.0.0.1:8080', new=1)
|
||||||
|
except:
|
||||||
|
print "Error: Browser is not responding correctly.\n"
|
||||||
# run traceroutes
|
# run traceroutes
|
||||||
traces = self.try_running(self.traces, "\nInternal error tracerouting.")
|
traces = self.try_running(self.traces, "\nInternal error tracerouting.")
|
||||||
print '='*45 + "\n"
|
print '='*45 + "\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user