Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 968 Bytes

README.md

File metadata and controls

53 lines (37 loc) · 968 Bytes

TFTP Worker

The TFTP service

redirect upload (write operation) and download (read operation) as local program calling

Usage

Usage of tftp-worker:
  -addr string
    	TFTP listen address (default ":tftp")
  -on-read string
    	Read operation local hook program
  -on-write string
    	Write operation local hook program
  -workdir string
    	Work directory

Read hook

Equivalent to:

read-hook-program <filename> | <file-content>

Environments:

Field Name Type
TFTP_ACTION READ
TFTP_READ_FILE file path

Write hook

Equivalent to:

<file-content> | write-hook-program <filename>

Environments:

Field Name Type
TFTP_ACTION WRITE
TFTP_WRITE_FILE file path