# HG changeset patch # User Matthew Wild # Date 1335635104 -3600 # Node ID ad6d4ab40b20689c5c52eecfde3f6401b7da9a7f # Parent 36234dc4b177bbcd76b09c8c97e9c2aba6cc22a2 portmanager: Ensure port is always a number (thanks Zash) diff -r 36234dc4b177 -r ad6d4ab40b20 core/portmanager.lua --- a/core/portmanager.lua Sat Apr 28 18:36:03 2012 +0100 +++ b/core/portmanager.lua Sat Apr 28 18:45:04 2012 +0100 @@ -112,6 +112,7 @@ for interface in bind_interfaces do for port in bind_ports do + port = tonumber(port); if #active_services:search(nil, interface, port) > 0 then log("error", "Multiple services configured to listen on the same port ([%s]:%d): %s, %s", interface, port, active_services:search(nil, interface, port)[1][1].service.name or "", service_name or ""); else