From ecd52c446633fe1441770380fe3f75e943337061 Mon Sep 17 00:00:00 2001 From: Thomas Schulte Date: Wed, 12 Jan 2022 13:55:28 +0100 Subject: [PATCH] adjust default port configuration fixes #344 --- nodes/redmatic-homekit-camera.html | 6 +++--- nodes/redmatic-homekit-tv.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nodes/redmatic-homekit-camera.html b/nodes/redmatic-homekit-camera.html index 9762867..19752cc 100644 --- a/nodes/redmatic-homekit-camera.html +++ b/nodes/redmatic-homekit-camera.html @@ -11,8 +11,8 @@ return Boolean(String(val).match(/^\d{3}-\d{2}-\d{3}$/)); } }, - port: {value: 51912, type: Number, required: true, validate: function (val) { - return val > 1024 && val < 65536; + port: {value: '51912', required: true, validate: function (val) { + return RED.validators.number(val) && val > 1024 && val < 65536; } },videoProcessor: {value: 'ffmpeg'}, source: {value: '-re -i rtsp://myfancy_rtsp_stream'}, @@ -160,4 +160,4 @@ \ No newline at end of file + diff --git a/nodes/redmatic-homekit-tv.html b/nodes/redmatic-homekit-tv.html index 1d28e02..0b89700 100644 --- a/nodes/redmatic-homekit-tv.html +++ b/nodes/redmatic-homekit-tv.html @@ -11,8 +11,8 @@ return Boolean(String(val).match(/^\d{3}-\d{2}-\d{3}$/)); } }, - port: {value: 51952, type: Number, required: true, validate: function (val) { - return val > 1024 && val < 65536; + port: {value: '51952', required: true, validate: function (val) { + return RED.validators.number(val) && val > 1024 && val < 65536; } }, inputsources: { @@ -168,4 +168,4 @@ \ No newline at end of file +