Don't service local requests.

There are security- and privacy-related issues with allowing local
processes - Chrome, for example - to access the p2p HTTP server. This
change blocks all access from the loopback interface.

TEST=Unit tests pass and manually tested by running "curl
    http://${IP}:16725" and checking that the connection is refused
    for IP being and an IP address assigned to one of the

Change-Id: I75d6bbf37e3e242fef8bca3b207fafcb1e67e957
Reviewed-by: Jorge Lucangeli Obes <>
Commit-Queue: David Zeuthen <>
Tested-by: David Zeuthen <>
1 file changed