File tree Expand file tree Collapse file tree
restcomm/configuration/config-scripts/as7-config-scripts/restcomm/autoconfig.d Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -637,12 +637,12 @@ otherRestCommConf(){
637637 mv $FILE .bak $FILE
638638
639639 # Remove if is set in earlier run.
640- grep -q ' allowLegacyHelloMessages' $RESTCOMM_BIN /standalone.conf && sed -i " s| -Dsun.security.ssl.allowLegacyHelloMessages=false -Djsse.enableSNIExtension=.* || " $RESTCOMM_BIN /standalone.conf
640+ grep -q ' allowLegacyHelloMessages' $RESTCOMM_BIN /standalone.conf && sed -i -E " s/(.*)( -Dsun.security.ssl.allowLegacyHelloMessages=false -Djsse.enableSNIExtension=)(true|false)(.*)/\1\4/ " $RESTCOMM_BIN /standalone.conf
641641
642642 if [[ " $SSLSNI " == " false" || " $SSLSNI " == " FALSE" ]]; then
643- sed -i " s|-Djava.awt.headless=true|& -Dsun.security.ssl.allowLegacyHelloMessages=false -Djsse.enableSNIExtension=false |" $RESTCOMM_BIN /standalone.conf
643+ sed -i " s|-Djava.awt.headless=true|& -Dsun.security.ssl.allowLegacyHelloMessages=false -Djsse.enableSNIExtension=false|" $RESTCOMM_BIN /standalone.conf
644644 else
645- sed -i " s|-Djava.awt.headless=true|& -Dsun.security.ssl.allowLegacyHelloMessages=false -Djsse.enableSNIExtension=true |" $RESTCOMM_BIN /standalone.conf
645+ sed -i " s|-Djava.awt.headless=true|& -Dsun.security.ssl.allowLegacyHelloMessages=false -Djsse.enableSNIExtension=true|" $RESTCOMM_BIN /standalone.conf
646646 fi
647647
648648 if [ -n " $HSQL_DIR " ]; then
You can’t perform that action at this time.
0 commit comments