Skip to content

Commit

Permalink
ZOOKEEPER-3887: In SSL-only server zkServer.sh status command should …
Browse files Browse the repository at this point in the history
…use secureClientPortAddress instead of clientPortAddress

Author: Mohammad Arshad <[email protected]>

Reviewers: Mate Szalay-Beko <[email protected]>

Closes #1654 from arshadmohammad/ZOOKEEPER-3887-master

(cherry picked from commit 51be692)
Signed-off-by: Mohammad Arshad <[email protected]>
(cherry picked from commit 4946c58)
  • Loading branch information
arshadmohammad authored and Mate Szalay-Beko committed May 17, 2022
1 parent 90322af commit aa20b0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/zkServer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@ status)
if [ "$secureClientPort" ] ; then
isSSL="true"
clientPort=$secureClientPort
clientPortAddress=`$GREP "^[[:space:]]*secureClientPortAddress[^[:alpha:]]" "$ZOOCFG" | sed -e 's/.*=//'`
if ! [ $clientPortAddress ]
then
clientPortAddress="localhost"
fi
else
echo "Unable to find either secure or unsecure client port in any configs. Terminating."
exit 1
Expand Down

0 comments on commit aa20b0e

Please sign in to comment.