diff options
author | Marek Vasut <marex@denx.de> | 2023-12-13 22:11:13 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-12-19 08:01:59 -0500 |
commit | 4caacb2f29f03e7ad724233282384be10c68e926 (patch) | |
tree | 03f56053d85e620d9708b309da33e3a8baa9c79d /doc/usage/environment.rst | |
parent | fac5308d275720b67b442383572a84edb212d6a1 (diff) |
net: wget: Support non-default HTTP port
Currently the wget command is hard wired to HTTP port 80. This is
inconvenient, as it is extremely easy to start trivial HTTP server
as an unprivileged user using e.g. python http module to serve the
files, but such a server has to run on one of the higher ports:
"
$ python3 -m http.server -d $(pwd) 8080
"
Make it possible to configure HTTP server port the same way it is
possible to configure TFTP server port, using environment variable
'httpdstp' (similar to 'tftpdstp'). Retain port 80 as the default
fallback port. This way, users can start their own trivial server
and conveniently download whatever files they need into U-Boot.
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'doc/usage/environment.rst')
-rw-r--r-- | doc/usage/environment.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/usage/environment.rst b/doc/usage/environment.rst index c57b717caaf..82b6ea7b6e7 100644 --- a/doc/usage/environment.rst +++ b/doc/usage/environment.rst @@ -306,6 +306,10 @@ ethrotate anything other than "no", U-Boot does go through all available network interfaces. +httpdstp + If this is set, the value is used for HTTP's TCP + destination port instead of the default port 80. + netretry When set to "no" each network operation will either succeed or fail without retrying. |