Update usage information for --http-override

This commit is contained in:
Tim Allclair 2020-07-16 10:26:01 -07:00 committed by Tim Allclair
parent 354cb6ca91
commit c05a350b4f
2 changed files with 10 additions and 0 deletions

View File

@ -421,6 +421,9 @@ If `--tls-cert-file` is added (ideally in conjunction with `--tls-private-key-fi
will be upgraded to HTTPS. The image has default, `localhost`-based cert/privkey files at will be upgraded to HTTPS. The image has default, `localhost`-based cert/privkey files at
`/localhost.crt` and `/localhost.key` (see: [`porter` subcommand](#porter)) `/localhost.crt` and `/localhost.key` (see: [`porter` subcommand](#porter))
If `--http-override` is set, the HTTP(S) server will always serve the override path & options,
ignoring the request URL.
It will also start a UDP server on the indicated UDP port that responds to the following commands: It will also start a UDP server on the indicated UDP port that responds to the following commands:
- `hostname`: Returns the server's hostname - `hostname`: Returns the server's hostname

View File

@ -94,6 +94,13 @@ var CmdNetexec = &cobra.Command{
Returns a JSON with the fields "output" (containing the file's name on the server) and Returns a JSON with the fields "output" (containing the file's name on the server) and
"error" containing any potential server side errors. "error" containing any potential server side errors.
If "--tls-cert-file" is added (ideally in conjunction with "--tls-private-key-file", the HTTP server
will be upgraded to HTTPS. The image has default, "localhost"-based cert/privkey files at
"/localhost.crt" and "/localhost.key" (see: "porter" subcommand)
If "--http-override" is set, the HTTP(S) server will always serve the override path & options,
ignoring the request URL.
It will also start a UDP server on the indicated UDP port that responds to the following commands: It will also start a UDP server on the indicated UDP port that responds to the following commands:
- "hostname": Returns the server's hostname - "hostname": Returns the server's hostname