contrib/benitlux: move the iface declaration to the toplevel for use with -D
authorAlexis Laferrière <alexis.laf@xymus.net>
Sun, 1 Nov 2015 15:34:15 +0000 (10:34 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 9 Mar 2016 20:10:06 +0000 (15:10 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/benitlux/src/benitlux_web.nit

index 90e7d24..8e03940 100644 (file)
@@ -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)