From: Alexis Laferrière Date: Sun, 1 Nov 2015 15:34:15 +0000 (-0500) Subject: contrib/benitlux: move the iface declaration to the toplevel for use with -D X-Git-Url: http://nitlanguage.org contrib/benitlux: move the iface declaration to the toplevel for use with -D Signed-off-by: Alexis Laferrière --- diff --git a/contrib/benitlux/src/benitlux_web.nit b/contrib/benitlux/src/benitlux_web.nit index 90e7d24..8e03940 100644 --- a/contrib/benitlux/src/benitlux_web.nit +++ b/contrib/benitlux/src/benitlux_web.nit @@ -24,7 +24,8 @@ import benitlux_controller # Avoid executing when running tests if "NIT_TESTING".environ == "true" then exit 0 -var iface = "localhost:8080" +# Listening interface +fun iface: String do return "localhost:8080" var vh = new VirtualHost(iface) vh.routes.add new Route("/rest/", new BenitluxRESTAction)