From 9453505c53ecd98245c3d6c944b72859892a391e Mon Sep 17 00:00:00 2001 From: Viet Nguyen Duc Date: Wed, 24 Jul 2024 11:06:53 +0700 Subject: [PATCH] fix: Rejecting message without a valid secret in session-map Fix: https://github.com/SeleniumHQ/docker-selenium/issues/2320 --- Sessions/start-selenium-grid-sessions.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sessions/start-selenium-grid-sessions.sh b/Sessions/start-selenium-grid-sessions.sh index f0f519d7d..899f1f569 100755 --- a/Sessions/start-selenium-grid-sessions.sh +++ b/Sessions/start-selenium-grid-sessions.sh @@ -63,6 +63,11 @@ if [ ! -z "$SE_JAVA_SSL_TRUST_STORE" ]; then SE_JAVA_OPTS="$SE_JAVA_OPTS -Djdk.internal.httpclient.disableHostnameVerification=${SE_JAVA_DISABLE_HOSTNAME_VERIFICATION:-true}" fi +if [ ! -z "$SE_REGISTRATION_SECRET" ]; then + echo "Appending Selenium options: --registration-secret ${SE_REGISTRATION_SECRET}" + SE_OPTS="$SE_OPTS --registration-secret ${SE_REGISTRATION_SECRET}" +fi + EXTRA_LIBS="" if [ "$SE_ENABLE_TRACING" = "true" ]; then