From 90b6a414a2039229afe2ef9c79327f263548152a Mon Sep 17 00:00:00 2001 From: Brandon Nozaki Miller Date: Thu, 1 Jul 2021 19:30:06 -0700 Subject: [PATCH 1/2] Update FUNDING.yml --- .github/FUNDING.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 93bc0c7..b4d976a 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1,4 @@ # These are supported funding model platforms github: RIAEvangelist + From 74c7886968dcc4946b6642b3f136ac15ed3a36b5 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Fri, 2 Jul 2021 21:10:01 +0100 Subject: [PATCH 2/2] set pipe read/write ability to variables --- README.md | 4 ++++ dao/socketServer.js | 4 ++-- entities/Defaults.js | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e2d794e..c45d727 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,8 @@ Set these variables in the `ipc.config` scope to overwrite or set default values id : os.hostname(), networkHost : 'localhost', //should resolve to 127.0.0.1 or ::1 see the table below related to this networkPort : 8000, + readableAll : false, + writableAll : false, encoding : 'utf8', rawBuffer : false, delimiter : '\f', @@ -127,6 +129,8 @@ Set these variables in the `ipc.config` scope to overwrite or set default values | id | the id of this socket or service | | networkHost| the local or remote host on which TCP, TLS or UDP Sockets should connect | | networkPort| the default port on which TCP, TLS, or UDP sockets should connect | +| readableAll| makes the pipe readable for all users including windows services | +| writableAll| makes the pipe writable for all users including windows services | | encoding | the default encoding for data sent on sockets. Mostly used if rawBuffer is set to true. Valid values are : ` ascii` ` utf8 ` ` utf16le` ` ucs2` ` base64` ` hex ` . | | rawBuffer| if true, data will be sent and received as a raw node ` Buffer ` __NOT__ an ` Object ` as JSON. This is great for Binary or hex IPC, and communicating with other processes in languages like C and C++ | | delimiter| the delimiter at the end of each data packet. | diff --git a/dao/socketServer.js b/dao/socketServer.js index 227d233..6b29beb 100644 --- a/dao/socketServer.js +++ b/dao/socketServer.js @@ -310,8 +310,8 @@ function startServer() { this.server.listen({ path: this.path, - readableAll: true, - writableAll: true + readableAll: this.config.readableAll, + writableAll: this.config.writableAll }, this.onStart.bind(this)); return; diff --git a/entities/Defaults.js b/entities/Defaults.js index c180eb2..dc63381 100644 --- a/entities/Defaults.js +++ b/entities/Defaults.js @@ -47,6 +47,9 @@ class Defaults{ this.networkHost = (this.IPType == 'IPv6') ? '::1' : '127.0.0.1'; this.networkPort = 8000; + this.readableAll = false; + this.writableAll = false; + this.interface={ localAddress:false, localPort:false,