diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-11-05 10:50:11 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-11-05 10:53:46 +0900 |
commit | a8186531740326e4eace928b84f78d130e67c319 (patch) | |
tree | f2902e3208d4055270f5556ff0b17a004a7635b9 /man | |
parent | 5c3b044740a31f3f3a69d5cf5ae0122696f73ceb (diff) |
Add --listen-unsafe=ADDR to allow remote process execution (#3498)
Diffstat (limited to 'man')
-rw-r--r-- | man/man1/fzf.1 | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index 66bc678b..6efd8a12 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -793,14 +793,19 @@ ncurses finder only after the input stream is complete. e.g. \fBfzf --multi | fzf --sync\fR .RE .TP -.B "--listen[=[ADDR:]PORT]" +.B "--listen[=[ADDR:]PORT]" "--listen-unsafe[=[ADDR:]PORT]" Start HTTP server and listen on the given address. It allows external processes -to send actions to perform via POST method. If the port number is omitted or -given as 0, fzf will automatically choose a port and export it as -\fBFZF_PORT\fR environment variable to the child processes. If -\fBFZF_API_KEY\fR environment variable is set, the server would require sending -an API key with the same value in the \fBx-api-key\fR HTTP header. -\fBFZF_API_KEY\fR is required for a non-localhost listen address. +to send actions to perform via POST method. + +- If the port number is omitted or given as 0, fzf will automatically choose +a port and export it as \fBFZF_PORT\fR environment variable to the child processes + +- If \fBFZF_API_KEY\fR environment variable is set, the server would require +sending an API key with the same value in the \fBx-api-key\fR HTTP header + +- \fBFZF_API_KEY\fR is required for a non-localhost listen address + +- To allow remote process execution, use \fB--listen-unsafe\fR e.g. \fB# Start HTTP server on port 6266 |