Skip to content

Commit

Permalink
Merge pull request #28 from file13/pullrequest
Browse files Browse the repository at this point in the history
Added clack startup option for address
  • Loading branch information
eudoxia0 committed Jul 17, 2019
2 parents 9985101 + b3e4978 commit 7037f2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/control.lisp
Expand Up @@ -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)."
Expand All @@ -34,6 +34,7 @@ returns @c(NIL)."
clack-app)))
:port port
:server server
:address address
:use-default-middlewares nil
:silent silent))
(sleep 1)
Expand Down

0 comments on commit 7037f2c

Please sign in to comment.