projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5881cac
)
portmanager: Return first service with the specified name from get_service() (instead...
author
Matthew Wild
<mwild1@gmail.com>
Tue, 4 Dec 2012 20:08:44 +0000
(20:08 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Tue, 4 Dec 2012 20:08:44 +0000
(20:08 +0000)
core/portmanager.lua
patch
|
blob
|
history
diff --git
a/core/portmanager.lua
b/core/portmanager.lua
index 8938be655aadd4ab7dfb334fa0e51c6c39c8d189..7427a8eb05b2893ad95da30bc97a27f4811fe0cb 100644
(file)
--- 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(...)