Currently we have some license issues. We are working on it.

Commit 2f36cf5a authored by zauberstuhl's avatar zauberstuhl
Browse files

Fix remote query without endpoint

parent b11cf5cc
......@@ -22,14 +22,14 @@ while true; do
req=$(echo -e "HTTP/1.1 200 OK\n\n$cnt" |nc -l -p $PORT -q1)
remote=$(echo "$req" |grep GET |cut -d' ' -f2 |cut -d@ -f2)
if [[ $req =~ '/add' ]]; then
if [[ "$remote" == "" ]]; then
if [[ "$remote" == "/add" ]]; then
eval $psqlAdd
else
curl http://$remote/add
fi
fi
if [[ $req =~ '/remove' ]]; then
if [[ "$remote" == "" ]]; then
if [[ "$remote" == "/remove" ]]; then
eval $psqlRemove
else
curl http://$remote/remove
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment