From a220461b44e944dffac183075705d4aaca573852 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 30 Dec 2015 22:35:17 +0000 Subject: [PATCH] note non-root port binding for node.js --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 0847d94..dbefe71 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,16 @@ Options: var punch = require('holepunch'); ``` +## Non-Root + +You **do not need root** to map ports, but you may need root to test them. + +If you're cool with allowing all node programs to bind to privileged ports, try this: + +```bash +sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node +``` + # License MPL-2.0