Skip to content

Commit ca208e6

Browse files
committed
Fixed where cannot start FireURL with no arguments
1 parent c0a2fc3 commit ca208e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fireURL.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ def log_info(msg):
6565

6666
def print_info():
6767
print '\033[1m' + ' )\n ) \\\n / ) (\n \(_)/' + '\033[0m'
68-
print '\033[95m\033[1m' + 'FireURL v.0.1 (c) PrankyMat 2015' + '\033[0m'
68+
print '\033[95m\033[1m' + 'FireURL v.0.2 (c) PrankyMat 2015' + '\033[0m'
6969
log_info('FireURL is listening on '+str(ip)+':'+str(LISTENPORT)+'. POST a url to fire it!')
7070

7171

7272
if __name__ == '__main__':
7373
ip = gethostbyname(gethostname())
7474

75-
LISTENPORT = int(sys.argv[1]) or LISTENPORT
75+
LISTENPORT = int(sys.argv[1]) if len(sys.argv) >= 2 else LISTENPORT
7676

7777
print_info()
7878

0 commit comments

Comments
 (0)