|
@@ -325,11 +325,16 @@ def main():
|
|
|
global iddict
|
|
|
global prev_cnt
|
|
|
|
|
|
+ port=4444
|
|
|
+ # if len(sys.argv) == 3 :
|
|
|
+ # port=int(sys.argv[1])
|
|
|
+ # proxyport=int(sys.argv[2])
|
|
|
+
|
|
|
if len(sys.argv)>1:
|
|
|
globalkw=sys.argv[1]
|
|
|
port=int(sys.argv[2])
|
|
|
proxyport=int(sys.argv[3])
|
|
|
-
|
|
|
+ print(globalkw, port, proxyport)
|
|
|
failcnt=0
|
|
|
localip=socket.gethostbyname(socket.gethostname())
|
|
|
# if localip=='192.168.1.108':
|
|
@@ -343,12 +348,6 @@ def main():
|
|
|
# table2 = db['swire_progress_list']
|
|
|
table2 = db['swire_area_progress']
|
|
|
|
|
|
-
|
|
|
- port=4444
|
|
|
- if len(sys.argv) == 3 :
|
|
|
- port=int(sys.argv[1])
|
|
|
- proxyport=int(sys.argv[2])
|
|
|
-
|
|
|
if not chrome_window:
|
|
|
print('restart docker p{}'.format(port))
|
|
|
# os.system('sudo docker container restart p'+str(port))
|