Skip to content

Commit 9e912ee

Browse files
committed
fix for demo.py to make it use configured host address
1 parent 1dfcf53 commit 9e912ee

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Fixed:
3434
Footer: link fixed and hardcoded last modfied date removed. (Bernhard Reiter)
3535
- demo.py tracker home is configurable, its location is printed and
3636
the directory is fully erased when nuking (anatoly techtonik)
37-
37+
- demo.py changing hostname in config.ini actually changes the address
38+
where demo.py listens. (John Rouillard)
3839

3940
2012-12-21: 1.4.21
4041

demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def run_demo(home):
136136
''' % dict(url=url, script=sys.argv[0], datadir=TRACKER_HOME)
137137

138138
# disable command line processing in roundup_server
139-
sys.argv = sys.argv[:1] + ['-p', str(port), 'demo=' + home]
139+
sys.argv = sys.argv[:1] + ['-p', str(port), '-n', hostname, 'demo=' + home]
140140
roundup_server.run(success_message=success_message)
141141

142142

0 commit comments

Comments
 (0)