Skip to content

Commit bf106d2

Browse files
authoredFeb 20, 2024··
docs: Add note about using sudo for firewall script (#2032)
1 parent 4378173 commit bf106d2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
 

‎bin/macos-firewall.sh

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# popups asking to accept incoming network connections when
44
# running tests.
55
#
6+
# This script must be run with elevated privileges, i.e.:
7+
#
8+
# $ sudo ./macos-firewall.sh
9+
#
610
# Originally from https://github.com/nodejs/node/blob/5398cb55ca10d34ed7ba5592f95b3b9f588e5754/tools/macos-firewall.sh
711

812
SFW="/usr/libexec/ApplicationFirewall/socketfilterfw"

‎documentation/developer-setup.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,8 @@ Note: when running the versioned test suite on a macOS system, the application
6262
firewall is likely to issue multiple requests to authorize the `node` binary
6363
for incoming connections. This can be avoided by running the
6464
[macos-firewall.sh](../bin/macos-firewall.sh) script to prime the application
65-
firewall with a rule to allow the connections.
65+
firewall with a rule to allow the connections:
66+
67+
```sh
68+
$ sudo ./bin/macos-firewall.sh
69+
```

0 commit comments

Comments
 (0)
Please sign in to comment.