Mercurial Hosting > luan
comparison core/src/luan/modules/host/Hosting.luan @ 615:abc3198c86dd
fix tail recursion bug;
add Hosting.exists();
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 17 Dec 2015 01:53:48 -0700 |
parents | b4f3dbe1c6e3 |
children | cc3a68033179 |
comparison
equal
deleted
inserted
replaced
614:9ecf5673fb6d | 615:abc3198c86dd |
---|---|
61 local socket = "socket:" .. domain .. ":" .. M.port | 61 local socket = "socket:" .. domain .. ":" .. M.port |
62 local host = Rpc.remote(socket) | 62 local host = Rpc.remote(socket) |
63 host.delete(domain,password) | 63 host.delete(domain,password) |
64 end | 64 end |
65 | 65 |
66 function M.exists(domain) | |
67 local socket = "socket:" .. domain .. ":" .. M.port | |
68 local host = Rpc.remote(socket) | |
69 return host.exists(domain) | |
70 end | |
71 | |
66 return M | 72 return M |