Skip to content

Commit 6265aa6

Browse files
committed
Update deCodeImg.py
1 parent 84387cd commit 6265aa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deCodeImg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ def main(argv):
5757
elif opt in ("-m", "--makeServer"):
5858
makeServer = True
5959
elif opt in ("-p", "--port"):
60-
port = arg
60+
port = int(arg)
6161
if makeServer == True:
62-
print('--- DeCodeImg Server Started ---\nPowered by hoothin\nhttp://127.0.0.1:416/?img=c:/codeimg.png\nhttp://127.0.0.1:416/?img=http://a.a/codeimg.png\nhttp://127.0.0.1:416/?img=Base64 Data')
62+
print('--- DeCodeImg Server Started ---\nPowered by hoothin\nhttp://127.0.0.1:'+str(port)+'/?img=c:/codeimg.png\nhttp://127.0.0.1:'+str(port)+'/?img=http://a.a/codeimg.png\nhttp://127.0.0.1:'+str(port)+'/?img=Base64 Data')
6363
httpd = make_server('', port, app)
6464
httpd.serve_forever()
6565
elif imgParam == "":

0 commit comments

Comments
 (0)