diff 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
line wrap: on
line diff
--- a/core/src/luan/modules/host/Hosting.luan	Mon Dec 14 23:55:36 2015 -0700
+++ b/core/src/luan/modules/host/Hosting.luan	Thu Dec 17 01:53:48 2015 -0700
@@ -63,4 +63,10 @@
 	host.delete(domain,password)
 end
 
+function M.exists(domain)
+	local socket = "socket:" .. domain .. ":" .. M.port
+	local host = Rpc.remote(socket)
+	return host.exists(domain)
+end
+
 return M