Skip to content

Commit

Permalink
Merge pull request #1158 from malkowski/master
Browse files Browse the repository at this point in the history
Add --interface flag, to allow devel server to only listen on 127.0.0.1
  • Loading branch information
obfuscurity committed Feb 14, 2015
2 parents 1df5e2e + 641eb1b commit 3473190
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/run-graphite-devel-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
%prog [options] GRAPHITE_ROOT
''')
option_parser.add_option('--port', default=8080, action='store', type=int, help='Port to listen on')
option_parser.add_option('--interface', default='0.0.0.0', action='store', help='Interface to listen on')
option_parser.add_option('--libs', default=None, help='Path to the directory containing the graphite python package')
option_parser.add_option('--noreload', action='store_true', help='Disable monitoring for changes')

Expand Down Expand Up @@ -45,7 +46,7 @@
'runserver',
'--pythonpath', python_path,
'--settings', 'graphite.settings',
'0.0.0.0:%d' % options.port
'%s:%d' % (options.interface, options.port)
]

if options.noreload:
Expand Down

0 comments on commit 3473190

Please sign in to comment.