Skip to content

Commit 51be692

Browse files
ZOOKEEPER-3887: In SSL-only server zkServer.sh status command should use secureClientPortAddress instead of clientPortAddress
Author: Mohammad Arshad <[email protected]> Reviewers: Mate Szalay-Beko <[email protected]> Closes apache#1654 from arshadmohammad/ZOOKEEPER-3887-master
1 parent 461aada commit 51be692

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/zkServer.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,11 @@ status)
276276
if [ "$secureClientPort" ] ; then
277277
isSSL="true"
278278
clientPort=$secureClientPort
279+
clientPortAddress=`$GREP "^[[:space:]]*secureClientPortAddress[^[:alpha:]]" "$ZOOCFG" | sed -e 's/.*=//'`
280+
if ! [ $clientPortAddress ]
281+
then
282+
clientPortAddress="localhost"
283+
fi
279284
else
280285
echo "Unable to find either secure or unsecure client port in any configs. Terminating."
281286
exit 1

0 commit comments

Comments
 (0)