Mercurial Hosting > luan
comparison src/luan/host/init.luan @ 1351:21b153b4bcc4
better reset_luan for luanhost
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 04 Mar 2019 12:12:45 -0700 |
parents | 11b7e11f9ed5 |
children | 8d95711f6615 |
comparison
equal
deleted
inserted
replaced
1350:d8754a50adf1 | 1351:21b153b4bcc4 |
---|---|
77 | 77 |
78 function Hosting.no_security(password) | 78 function Hosting.no_security(password) |
79 WebHandler.securityPassword == password or error "wrong password" | 79 WebHandler.securityPassword == password or error "wrong password" |
80 LuanJava.setSecurity(nil) | 80 LuanJava.setSecurity(nil) |
81 end | 81 end |
82 | |
83 function Http.reset_luan() | |
84 WebHandler.removeHandler(domain) | |
85 end |