contrib/benitlux: move the iface declaration to the toplevel for use with -D
[nit.git] / 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)