These are chat archives for synrc/n2o

23rd
May 2016
skatt
@skatt
May 23 2016 01:26 UTC
The script needs to be defined before n2o libraries so that they can access during runtime.
@marutha Sorry, I didn't notice that you added it after before. Once the socket is established, n2o libraries use the output in {{script}} to make the calls function.
@5HT Is there a way to intercept file async from ftp and prevent upload under certain conditions?
Namdak Tonpa
@5HT
May 23 2016 08:03 UTC
just modify ftp.js
skatt
@skatt
May 23 2016 08:06 UTC
Isn't it vulnerable if file always accepts whatever ftp says?
Namdak Tonpa
@5HT
May 23 2016 08:15 UTC
n2o is not a security layer
if your websocket client sends wrong messages it up to him fail or not
what kind of restrictions do you need?
skatt
@skatt
May 23 2016 08:18 UTC
I know. I wanted to implement my own layer. Is it better then to create my own async listener to replace file if I want to? I was going to just do checks for meme types and sizes to compare with custom acl features for now.
Namdak Tonpa
@5HT
May 23 2016 21:25 UTC
yes just replace n2o_file.erl with your own implementation — later I will check if I can merge something