diff options
author | KatolaZ <katolaz@freaknet.org> | 2018-08-13 21:58:02 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2018-08-13 21:58:02 +0100 |
commit | 90d42de2ba829cf77e94c7f5b5c2bf88eb1fd922 (patch) | |
tree | 8a0ea5a32f43132a5589d1672f56a3e0d0327a25 | |
parent | 250aead2cef226a37b1627663ec6ac4d8605c93b (diff) |
added server|port repl. in gph rendering
-rwxr-xr-x | gosher | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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-) |