remove line that prints client's selector

git-svn-id: file:///srv/svn/repo/tokiko/trunk@10 8f5ca974-a7f8-e144-9f80-d41d5039c194
This commit is contained in:
shokara 2021-12-25 02:50:52 +00:00
parent 438f8bdff9
commit cf4e8d7553

View File

@ -13,7 +13,7 @@ import (
const HOST = "0.0.0.0"
const PORT = "7070"
const HOSTNAME = "demiurge.shoko.home"
const DIR = "./"
const DIR = "/home/kou/src/gopherhole"
func formatLine(line string) string {
trimmed := strings.TrimRight(line, "\r\n")
@ -92,8 +92,6 @@ func connHandle(c net.Conn) {
selector := strings.TrimRight(data, "\r\n")
log.Println(selector)
if selector == "" {
printGophermap(c, "./")
} else if strings.Contains(selector, "..") {