Skip Menu |

This queue is for tickets about the App-HTTPThis CPAN distribution.

Report information
The Basics
Id: 84641
Status: open
Priority: 0/
Queue: App-HTTPThis

People
Owner: Nobody in particular
Requestors: DDUMONT [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.002
Fixed in: (no value)



Subject: http_this should not listen on all interfaces and IP addresses by default
Hello Thanks for http_this, it's very practical for testing. But, when starting, http_this shows: $ http_this --port 9099 Exporting '.', available at: http://127.0.0.1:9099/ OTOH, it does also respond to queries on my IP address from another machine. netstat shows: $ sudo netstat -alpet |grep 9099 Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name [...] tcp 0 0 *:9099 *:* LISTEN dd 964449 28995/perl So, app_this listen to all IP addresses, which is somewhat inconvenient from a security point of view. Could you modify http_this to listen only to 127.0.0.1 by default. All the best
I would suggest adding an argument --ip, supporting both IPv4 and IPv6 addresses (e.g. --ip 10.11.12.13 or --ip 2001:db8:32::4be).