Time Nick Message 14:04 repetitivestrain !tell Krock there's a typo in my username in https://github.com/luanti-org/docs.luanti.org/pull/279 14:04 repetitivestrain "repetetivestrain" 14:04 repetitivestrain oh it's ~tell here 14:04 repetitivestrain ~tell Krock there's a typo in my username in https://github.com/luanti-org/docs.luanti.org/pull/279 14:04 ShadowBot repetitivestrain: OK. 14:56 [MatrxMT] Хуесосы 19:01 MTDiscord <.elysian__> Hello, I am working on an IRC system and would like to know if it would be possible to modify Minetest slightly so that it can directly receive HTTP requests (without disabling mod security) and avoid polling (checking every few seconds to see if there is a new message). 19:05 sfan5 possible, certainly 19:05 MTDiscord <.elysian__> Yeah but how?.. 19:06 sfan5 have you looked into using luasocket via the insecure environment? 19:07 MTDiscord <.elysian__> Yes, but it's complicated because luasocket contains other dependencies, so minetest refuses. 19:07 sfan5 that sounds weird because other people have successfully used it 19:09 MTDiscord <.elysian__> It only works if I disable global security, which I would like to avoid in order to maintain a minimum level of security. 19:15 jonadab Handling data that come from the public internet is _inherently_ a security risk at some level; code that does so has to be very careful about assumptions that it makes. 19:16 jonadab At least lua code shouldn't have to worry about things like buffer overruns. Probably. Unless the interpreter is buggy. 19:17 MTDiscord <.elysian__> Yes, I know, I'll stay on the local network. I think I've found a solution. 19:41 sfan5 you dont need to disable global security to use it 21:34 MTDiscord I had a hard time getting luasockets to work, but work it did. And my use case was rather weird, because I specificaly wanted unix-domain sockets, not the "usual" kind (TCP) that all the existing examples were for. 21:35 MTDiscord https://gitlab.com/sztest/szutilpack/-/blob/master/szutil_chatsocket/init.lua?ref_type=heads#L66-82 21:36 MTDiscord Do you really need to do this? 21:37 MTDiscord Maybe you could set up a proxy program that minetest server traffic goes through. 21:37 MTDiscord Then you could spoof minetest chat packets in order to connect irc and minetest. 22:05 MTDiscord Elysian: You're probably looking for the "temporarily set require to insecure require, undo that later" hack. 22:06 MTDiscord But unless you're very careful (e.g. by using ie.setfenv) never to invoke anything that can be hooked, the sandbox is effectively weakened at that point.