We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0a2fc3 commit ca208e6Copy full SHA for ca208e6
fireURL.py
@@ -65,14 +65,14 @@ def log_info(msg):
65
66
def print_info():
67
print '\033[1m' + ' )\n ) \\\n / ) (\n \(_)/' + '\033[0m'
68
- print '\033[95m\033[1m' + 'FireURL v.0.1 (c) PrankyMat 2015' + '\033[0m'
+ print '\033[95m\033[1m' + 'FireURL v.0.2 (c) PrankyMat 2015' + '\033[0m'
69
log_info('FireURL is listening on '+str(ip)+':'+str(LISTENPORT)+'. POST a url to fire it!')
70
71
72
if __name__ == '__main__':
73
ip = gethostbyname(gethostname())
74
75
- LISTENPORT = int(sys.argv[1]) or LISTENPORT
+ LISTENPORT = int(sys.argv[1]) if len(sys.argv) >= 2 else LISTENPORT
76
77
print_info()
78
0 commit comments