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:
parent
438f8bdff9
commit
cf4e8d7553
4
main.go
4
main.go
@ -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, "..") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user