From 4caacb2f29f03e7ad724233282384be10c68e926 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Wed, 13 Dec 2023 22:11:13 +0100 Subject: 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 Reviewed-by: Tom Rini Reviewed-by: Ramon Fried --- include/net/wget.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include') diff --git a/include/net/wget.h b/include/net/wget.h index da0920de118..6714f7ea573 100644 --- a/include/net/wget.h +++ b/include/net/wget.h @@ -17,6 +17,5 @@ enum wget_state { }; #define DEBUG_WGET 0 /* Set to 1 for debug messages */ -#define SERVER_PORT 80 #define WGET_RETRY_COUNT 30 #define WGET_TIMEOUT 2000UL -- cgit v1.3.1