Skip to content

Latest commit

 

History

History

tftp-worker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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