note non-root port binding for node.js

This commit is contained in:
AJ ONeal 2015-12-30 22:35:17 +00:00
parent 6cc9ec30f7
commit a220461b44
1 changed files with 10 additions and 0 deletions

View File

@ -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