Mercurial Hosting > luan
comparison src/luan/host/WebHandler.java @ 1425:b6030fa18839
hosting fix
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 24 Nov 2019 16:04:58 -0700 |
parents | 9ab267b9427c |
children | 219f2b937f2b |
comparison
equal
deleted
inserted
replaced
1424:9ab267b9427c | 1425:b6030fa18839 |
---|---|
57 LuanHandler luanHandler = (LuanHandler)domainHandler.getHandler(domain); | 57 LuanHandler luanHandler = (LuanHandler)domainHandler.getHandler(domain); |
58 return luanHandler.call_rpc(fnName,args); | 58 return luanHandler.call_rpc(fnName,args); |
59 } | 59 } |
60 | 60 |
61 private static void initLuan(Luan luan,String dir,String domain) { | 61 private static void initLuan(Luan luan,String dir,String domain) { |
62 security(luan,dir); | |
63 try { | 62 try { |
64 LuanFunction fn = Luan.loadClasspath(luan,"luan/host/init.luan"); | 63 LuanFunction fn = Luan.loadClasspath(luan,"luan/host/init.luan"); |
65 fn.call(dir,domain); | 64 fn.call(dir,domain); |
66 } catch(LuanException e) { | 65 } catch(LuanException e) { |
67 throw new LuanRuntimeException(e); | 66 throw new LuanRuntimeException(e); |
68 } | 67 } |
68 security(luan,dir); | |
69 } | 69 } |
70 | 70 |
71 public static void removeHandler(String domain) { | 71 public static void removeHandler(String domain) { |
72 domainHandler.removeHandler(domain); | 72 domainHandler.removeHandler(domain); |
73 } | 73 } |