Skip to content

Commit

Permalink
Update usage information for --http-override
Browse files Browse the repository at this point in the history
  • Loading branch information
tallclair committed Nov 2, 2020
1 parent 354cb6c commit c05a350
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/images/agnhost/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
`/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:

- `hostname`: Returns the server's hostname
Expand Down
7 changes: 7 additions & 0 deletions test/images/agnhost/netexec/netexec.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ var CmdNetexec = &cobra.Command{
Returns a JSON with the fields "output" (containing the file's name on the server) and
"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:
- "hostname": Returns the server's hostname
Expand Down

0 comments on commit c05a350

Please sign in to comment.