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]>
  • Loading branch information
arshadmohammad committed Mar 27, 2021
1 parent 13e02c5 commit 4946c58
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 @@ -270,6 +270,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 4946c58

Please sign in to comment.