diff options
Diffstat (limited to 'gopher/serve.go')
-rw-r--r-- | gopher/serve.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gopher/serve.go b/gopher/serve.go index 572fa55..bad7935 100644 --- a/gopher/serve.go +++ b/gopher/serve.go @@ -8,14 +8,14 @@ import ( "net" "strings" - "tildegit.org/tjp/gus" - "tildegit.org/tjp/gus/internal" - "tildegit.org/tjp/gus/logging" + sr "tildegit.org/tjp/sliderule" + "tildegit.org/tjp/sliderule/internal" + "tildegit.org/tjp/sliderule/logging" ) type gopherServer struct { internal.Server - handler gus.Handler + handler sr.Handler } func (gs gopherServer) Protocol() string { return "GOPHER" } @@ -26,9 +26,9 @@ func NewServer( hostname string, network string, address string, - handler gus.Handler, + handler sr.Handler, errLog logging.Logger, -) (gus.Server, error) { +) (sr.Server, error) { gs := &gopherServer{handler: handler} if strings.IndexByte(hostname, ':') < 0 { @@ -45,7 +45,7 @@ func NewServer( } func (gs *gopherServer) handleConn(conn net.Conn) { - var response *gus.Response + var response *sr.Response request, err := ParseRequest(conn) if err != nil { response = Error(errors.New("Malformed request.")).Response() |