Skip to content

Commit

Permalink
Merge pull request #394 from shamada-kuuluu/master
Browse files Browse the repository at this point in the history
Added a config option for pup to allow setting the bound network interface
  • Loading branch information
Remi Hakim committed Mar 7, 2013
2 parents bed14fd + 766fb23 commit 80cdc29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions datadog.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ use_mount: no

# use_pup: yes
# pup_port: 17125
# pup_interface: localhost
# pup_url: http://localhost:17125

# ========================================================================== #
Expand Down
3 changes: 2 additions & 1 deletion pup/pup.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,13 @@ def run_pup(config):
global port

port = config.get('pup_port', 17125)
interface = config.get('pup_interface', 'localhost')

if config.get('non_local_traffic', False) is True:
application.listen(port)
else:
# localhost in lieu of 127.0.0.1 allows for ipv6
application.listen(port, address="localhost")
application.listen(port, address=interface)

interval_ms = 2000
io_loop = ioloop.IOLoop.instance()
Expand Down

0 comments on commit 80cdc29

Please sign in to comment.