From 193b00e1ff970c1c5566aae8f74dea0c9fd3ed2f Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 4 Dec 2012 20:08:44 +0000 Subject: portmanager: Return first service with the specified name from get_service() (instead of the array of possible services) (thanks xnyhps) --- core/portmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/portmanager.lua b/core/portmanager.lua index 8938be65..7427a8eb 100644 --- a/core/portmanager.lua +++ b/core/portmanager.lua @@ -190,7 +190,7 @@ function get_service_at(interface, port) end function get_service(service_name) - return services[service_name]; + return (services[service_name] or {})[1]; end function get_active_services(...) -- cgit v1.2.3