@ai-ecoverse/slicc-kernel 1.43.0 → 1.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/process-worker.js
CHANGED
|
@@ -8898,9 +8898,11 @@ function netOps(kernel, io) {
|
|
|
8898
8898
|
connect: async (options) => {
|
|
8899
8899
|
const signal = options.signal ?? NEVER;
|
|
8900
8900
|
signal.throwIfAborted();
|
|
8901
|
+
const host = options.host ?? "127.0.0.1";
|
|
8902
|
+
if (host.includes(":")) throw new JsCallError("EADDRNOTAVAIL", host);
|
|
8901
8903
|
const addr = {
|
|
8902
8904
|
family: "inet",
|
|
8903
|
-
host: await resolve(
|
|
8905
|
+
host: await resolve(host, signal),
|
|
8904
8906
|
port: port(options.port)
|
|
8905
8907
|
};
|
|
8906
8908
|
return opened(async (fd) => {
|