diff --git a/eufy-security-ws/CHANGELOG.md b/eufy-security-ws/CHANGELOG.md index 84e9609..c9f160e 100755 --- a/eufy-security-ws/CHANGELOG.md +++ b/eufy-security-ws/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.8.0-2 + +- Fixed livestreaming issue introduced by CVE-2023-46809 in Node.js ([#310](https://github.com/bropat/eufy-security-ws/issues/310)) + ## 1.8.0-1 - Fixed livestreaming issue introduced by CVE-2023-46809 in Node.js ([#310](https://github.com/bropat/eufy-security-ws/issues/310)) diff --git a/eufy-security-ws/config.yaml b/eufy-security-ws/config.yaml index e9dc510..feae982 100755 --- a/eufy-security-ws/config.yaml +++ b/eufy-security-ws/config.yaml @@ -1,6 +1,6 @@ name: eufy-security-ws description: Allows you to control Eufy security devices over websocket by connecting to the Eufy cloud servers and local/remote stations -version: 1.8.0-1 +version: 1.8.0-2 slug: "eufy_security_ws" url: https://github.com/bropat/hassio-eufy-security-ws init: false diff --git a/eufy-security-ws/run.sh b/eufy-security-ws/run.sh index 5e0b1f8..6e2a382 100755 --- a/eufy-security-ws/run.sh +++ b/eufy-security-ws/run.sh @@ -104,26 +104,9 @@ check_version() { return 0 # lower } -node_version=$(node -v) -node_result=0 -if [ "${node_version:1:2}" = "18" ]; then - check_version "v18.19.1" "$node_version" - node_result=$? -elif [ "${node_version:1:2}" = "20" ]; then - check_version "v20.11.1" "$node_version" - node_result=$? -else - check_version "v21.6.2" "$node_version" - node_result=$? -fi -WORKAROUND_ISSUE_310="" -if [ $node_result -gt 0 ]; then - WORKAROUND_ISSUE_310="--security-revert=CVE-2023-46809" -fi - if bashio::config.has_value 'username' && bashio::config.has_value 'password'; then echo "$JSON_STRING" > $CONFIG_PATH - exec /usr/bin/node $WORKAROUND_ISSUE_310 $IPV4_FIRST_NODE_OPTION /usr/src/app/node_modules/eufy-security-ws/dist/bin/server.js --host 0.0.0.0 --config $CONFIG_PATH $DEBUG_OPTION $PORT_OPTION + exec /usr/bin/node --security-revert=CVE-2023-46809 $IPV4_FIRST_NODE_OPTION /usr/src/app/node_modules/eufy-security-ws/dist/bin/server.js --host 0.0.0.0 --config $CONFIG_PATH $DEBUG_OPTION $PORT_OPTION else echo "Required parameters username and/or password not set. Starting aborted!" fi