From e9ba0630e5c2da3bac04013dc57d88012508df0e Mon Sep 17 00:00:00 2001 From: shamada-kuuluu Date: Tue, 5 Mar 2013 15:15:30 +0100 Subject: [PATCH 1/2] Added config option for bound interface to pup Added config option to allow pup to bind to a specific interface. --- pup/pup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pup/pup.py b/pup/pup.py index 581cef0753..079041acd7 100644 --- a/pup/pup.py +++ b/pup/pup.py @@ -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() From 766fb23ec5c4958ce559bb6d7d5b1cb07a418658 Mon Sep 17 00:00:00 2001 From: shamada-kuuluu Date: Tue, 5 Mar 2013 15:17:21 +0100 Subject: [PATCH 2/2] Added config option for bound interface to pup Update config to show how to set bound interface for pup. --- datadog.conf.example | 1 + 1 file changed, 1 insertion(+) diff --git a/datadog.conf.example b/datadog.conf.example index 7febeb7470..cff427721f 100644 --- a/datadog.conf.example +++ b/datadog.conf.example @@ -46,6 +46,7 @@ use_mount: no # use_pup: yes # pup_port: 17125 +# pup_interface: localhost # pup_url: http://localhost:17125 # ========================================================================== #