Skip to content

Commit

Permalink
fixup! fixup! add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
avivkeller committed Oct 14, 2024
1 parent e85d064 commit 4da9010
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

'use strict';
const common = require('../common');
const { readFileSync } = require('fs');

// Skip on macOS Mojave. https://github.com/nodejs/node/issues/21679
if (common.isMacOS)
Expand All @@ -39,6 +38,8 @@ if (process.getuid() === 0)
// Some systems won't have port 42 set as a privileged port, in that
// case, skip the test.
if (common.isLinux) {
const { readFileSync } = require('fs');

try {
const unprivilegedPortStart = parseInt(readFileSync('/proc/sys/net/ipv4/ip_unprivileged_port_start'));
if (unprivilegedPortStart <= 42) {
Expand Down

0 comments on commit 4da9010

Please sign in to comment.