diff options
-rw-r--r-- | gopherproxy.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gopherproxy.go b/gopherproxy.go index 9a081dc..a91e057 100644 --- a/gopherproxy.go +++ b/gopherproxy.go | |||
@@ -602,7 +602,10 @@ func ListenAndServe(bind, startpagefile string, robotsfile string, robotsdebug b | |||
602 | 602 | ||
603 | startpagedata, err := ioutil.ReadFile(startpagefile) | 603 | startpagedata, err := ioutil.ReadFile(startpagefile) |
604 | if err != nil { | 604 | if err != nil { |
605 | startpagedata = []byte{} | 605 | startpagedata, err = box.Find("startpage.txt") |
606 | if err != nil { | ||
607 | startpagedata = []byte{} | ||
608 | } | ||
606 | } | 609 | } |
607 | startpagetext := string(startpagedata) | 610 | startpagetext := string(startpagedata) |
608 | 611 | ||