From 2cb3a23b6bc9001226ca7bd98b705cc3a04532f3 Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Fri, 7 May 2021 20:20:06 +0200 Subject: [PATCH] fix(ws2p): set uuid if is not provided --- app/modules/ws2p/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/modules/ws2p/index.ts b/app/modules/ws2p/index.ts index d5ac7b4c2..3d9854303 100644 --- a/app/modules/ws2p/index.ts +++ b/app/modules/ws2p/index.ts @@ -311,6 +311,11 @@ export class WS2PAPI extends stream.Transform { **************/ if (this.conf.ws2p && this.conf.ws2p.publicAccess) { + + if (!this.conf.ws2p.uuid) { + this.conf.ws2p.uuid = nuuid.v4().slice(0, 8); + } + /*************** * MANUAL **************/ -- GitLab