On Sat, Nov 04, 2023 at 04:09:54PM +0100, Marek Vasut wrote:

> 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 <ma...@denx.de>
> ---
> Cc: "Ying-Chun Liu (PaulLiu)" <paul....@linaro.org>
> Cc: Duncan Hare <duncanch...@yahoo.com>
> Cc: Joe Hershberger <joe.hershber...@ni.com>
> Cc: Marek Vasut <ma...@denx.de>
> Cc: Ramon Fried <rfried....@gmail.com>
> Cc: Simon Glass <s...@chromium.org>
> ---
>  include/net/wget.h |  1 -
>  net/wget.c         | 14 ++++++++++----
>  2 files changed, 10 insertions(+), 5 deletions(-)

Sorry for the late review, can you please update the docs as well with
this? For example 'tftpdstp' is documented in both the environment doc
and the tftp command doc.

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to