added server|port repl. in gph rendering

master
KatolaZ 6 years ago
parent 250aead2ce
commit 90d42de2ba
  1. 3
      gosher

@ -165,7 +165,8 @@ serve_index(){
rline=$(echo "$line" | tr -d '\r')
case "$rline" in
'['*)
line=$(echo "$rline" | sed -r -e 's/\[//g;s/\]//g;s/\|/ /g;s/ / /;')
line=$(echo "$rline" | sed -r -e 's/^\[//;s/\]$//;s/\|/ /g;s/ / /;')
line=$(echo "$line" | sed -r -e "s/server port/$HOSTNAME $PORT/")
;;
t*)
line=$(echo "$rline" | cut -b 2-)

Loading…
Cancel
Save