summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2015-02-17 22:11:24 -0600
committerMichael Merickel <michael@merickel.org>2015-02-17 22:11:24 -0600
commit99bf8b84fbadf5c50232fc90ee2cdc5708b6f6bf (patch)
treeb71c0ec227a49561cd6a6a82b4323d1b1d30f357
parentdf966ac2f5c6fc230db920d945be4a6567521e40 (diff)
downloadpyramid-99bf8b84fbadf5c50232fc90ee2cdc5708b6f6bf.tar.gz
pyramid-99bf8b84fbadf5c50232fc90ee2cdc5708b6f6bf.tar.bz2
pyramid-99bf8b84fbadf5c50232fc90ee2cdc5708b6f6bf.zip
pserve -b will always open 127.0.0.1
-rw-r--r--pyramid/scripts/pserve.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/scripts/pserve.py b/pyramid/scripts/pserve.py
index 3b79aabd7..d68075e01 100644
--- a/pyramid/scripts/pserve.py
+++ b/pyramid/scripts/pserve.py
@@ -350,7 +350,7 @@ class PServeCommand(object):
def open_browser():
context = loadcontext(SERVER, app_spec, name=app_name, relative_to=base,
global_conf=vars)
- url = 'http://{host}:{port}/'.format(**context.config())
+ url = 'http://127.0.0.1:{port}/'.format(**context.config())
time.sleep(1)
webbrowser.open(url)
t = threading.Thread(target=open_browser)