Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
fix #625
Browse files Browse the repository at this point in the history
  • Loading branch information
FeeiCN committed Dec 18, 2017
1 parent f76c2a5 commit 5a7de01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cobra/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def main():
logger.critical('Nonsupport Windows!!!')

if args.host is not None and args.port is not None:
if not int(args.port) <= 65535:
logger.critical('port must be 0-65535.')
exit()
logger.debug('[INIT] start RESTful Server...')
api.start(args.host, args.port, args.debug)
else:
Expand Down

0 comments on commit 5a7de01

Please sign in to comment.