How to define server root for inets tftp server

245 views Asked by At

Seems trivial, but property {server_root, Path} in server config doesn't work. Any hints?

1

There are 1 answers

0
Harald Brinkhof On

it appears you need to set it in the tftp_file callback

tftp:start([{callback, {".*", tftp_file, [{root_dir, "/tftpboot"}]}}]).