From b3e49783555d37fc6afe787686f6a9cdad23af8e Mon Sep 17 00:00:00 2001 From: "Michael J. Rossi" Date: Wed, 17 Jul 2019 11:36:48 -0500 Subject: [PATCH] added clack startup option for address --- src/control.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/control.lisp b/src/control.lisp index b957371..dc80235 100644 --- a/src/control.lisp +++ b/src/control.lisp @@ -14,7 +14,7 @@ error -- This is particularly common in testing. By using this system, we don't leak ports and prevent 'address in use' errors.")) (in-package :lucerne.ctl) -(defmethod start ((app base-app) &key (port 8000) (server :hunchentoot) debug silent) +(defmethod start ((app base-app) &key (port 8000) (server :hunchentoot) (address "127.0.0.1") debug silent) "Bring up @cl:param(app), by default on @cl:param(port) 8000. If the server was not running, it returns @c(T). If the server was running, it restarts it and returns @c(NIL)." @@ -34,6 +34,7 @@ returns @c(NIL)." clack-app))) :port port :server server + :address address :use-default-middlewares nil :silent silent)) (sleep 1)