* another router fix...
parent
4845da7909
commit
4e49582099
|
@ -124,7 +124,8 @@ echo "$(date) - IP: ${r[ip]}, PROTO: ${r[proto]}, URL: ${r[url]}, GET_data: ${ge
|
|||
|
||||
if [[ ${r[status]} != 101 ]]; then
|
||||
for (( i=0; i<${#route[@]}; i=i+3 )); do
|
||||
if [[ "$(grep -Poh "^${route[$((i+1))]}$" <<< "${r[url]}")" != "" ]] || [[ "$(grep -Poh "^${route[$((i+1))]}$" <<< "${r[url]}/")" != "" ]]; then
|
||||
clean_url="$(grep -Poh '.*?\?' <<< "${r[url]}")"
|
||||
if [[ "$(grep -Poh "^${route[$((i+1))]}$" <<< "$clean_url")" != "" ]] || [[ "$(grep -Poh "^${route[$((i+1))]}$" <<< "$clean_url/")" != "" ]]; then
|
||||
r[status]=212
|
||||
r[view]="${route[$((i+2))]}"
|
||||
IFS='/'
|
||||
|
|
Loading…
Reference in New Issue