summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/app/wsgi.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/ryu/app/wsgi.py b/ryu/app/wsgi.py
index fc4c71ac..0b98df94 100644
--- a/ryu/app/wsgi.py
+++ b/ryu/app/wsgi.py
@@ -34,11 +34,17 @@ from webob.response import Response as webob_Response
from ryu import cfg
from ryu.lib import hub
+DEFAULT_WSGI_HOST = '0.0.0.0'
+DEFAULT_WSGI_PORT = 8080
CONF = cfg.CONF
CONF.register_cli_opts([
- cfg.StrOpt('wsapi-host', default='', help='webapp listen host'),
- cfg.IntOpt('wsapi-port', default=8080, help='webapp listen port')
+ cfg.StrOpt(
+ 'wsapi-host', default=DEFAULT_WSGI_HOST,
+ help='webapp listen host (default %s)' % DEFAULT_WSGI_HOST),
+ cfg.IntOpt(
+ 'wsapi-port', default=DEFAULT_WSGI_PORT,
+ help='webapp listen port (default %s)' % DEFAULT_WSGI_PORT),
])
HEX_PATTERN = r'0x[0-9a-z]+'