diff options
author | Hank Leininger <hlein@korelogic.com> | 2014-04-02 22:00:28 -0400 |
---|---|---|
committer | Hank Leininger <hlein@korelogic.com> | 2014-04-02 22:00:28 -0400 |
commit | c8edb28d5b9a6b1d65c76978ac4388ef351eb6e8 (patch) | |
tree | 67bd91b6d3e9486b094f947507891153524a40d4 /example/sp-repoze | |
parent | 104198416bcaf3884fa53b0bcdb4e459b4656d43 (diff) | |
download | pysaml2-c8edb28d5b9a6b1d65c76978ac4388ef351eb6e8.tar.gz |
Change examples to bind to 127.0.0.1 by default.
Since the README already says to point a browser at localhost, it
was surprising to see the listeners bound to 0.0.0.0 by default.
Changed that and added notes in README about how to change it if
the user really wants to make a test listener accessible
externally.
Updated output messages during startup to include the bound IP,
to make this more obvious.
Added a missing EOL or two.
Diffstat (limited to 'example/sp-repoze')
-rwxr-xr-x | example/sp-repoze/sp.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/example/sp-repoze/sp.py b/example/sp-repoze/sp.py index f16cc399..a0af4e74 100755 --- a/example/sp-repoze/sp.py +++ b/example/sp-repoze/sp.py @@ -268,6 +268,7 @@ app_with_auth = make_middleware_with_config(application, {"here": "."}, log_file="repoze_who.log") # ---------------------------------------------------------------------------- +HOST = '127.0.0.1' PORT = 8087 # allow uwsgi or gunicorn mount @@ -291,6 +292,6 @@ if __name__ == '__main__': args = parser.parse_args() from wsgiref.simple_server import make_server - srv = make_server('', PORT, app_with_auth) - print "SP listening on port: %s" % PORT + srv = make_server(HOST, PORT, app_with_auth) + print "SP listening on %s:%s" % (HOST, PORT) srv.serve_forever() |