Files
termux-packages/packages/nodejs-lts/test-parallel-test-cluster-bind-privileged-port.js.patch
termux-pacman-bot 04edb498c3 chore(main/nodejs-lts): pick up changes for how we configure from nodejs
Although --debug is not needed currently for nodejs-lts, let's pick it
up before it is actually needed. Also would make things much more
standard between the two packages
2025-12-10 10:42:59 +00:00

14 lines
586 B
Diff

--- ./test/parallel/test-cluster-bind-privileged-port.js.orig 2023-04-27 18:55:33.412729481 +0530
+++ ./test/parallel/test-cluster-bind-privileged-port.js 2023-04-27 18:57:07.626113300 +0530
@@ -25,8 +25,9 @@
const cluster = require('cluster');
const net = require('net');
const { readFileSync } = require('fs');
+const { platform } = require('os');
-if (common.isLinux) {
+if (common.isLinux || platform() === 'android') {
try {
const unprivilegedPortStart = parseInt(readFileSync('/proc/sys/net/ipv4/ip_unprivileged_port_start'));
if (unprivilegedPortStart <= 42) {