;;; Imports
-(import (chicken tcp)
+(import tcp6
(chicken port)
(chicken io)
(chicken string)
;;; Global constants
-(define scratchy-version "1.0.1")
+(define scratchy-version "1.2.0")
(define scratchy-footer
(conc "\n"
(define (run-server config)
(set-buffering-mode! (current-output-port) #:line)
- (let ((listener (tcp-listen (config-port config))))
+ (let ((listener (tcp-listen (config-port config) 10 "::")))
(print "Gopher server listening on port " (config-port config) " ...")
(drop-privs config)
(server-loop listener config))