2021-08-19 16:57:02 +02:00
|
|
|
--- ./networking/httpd.c.orig 2021-08-19 16:49:06.730314230 +0200
|
|
|
|
+++ ./networking/httpd.c 2021-08-19 16:49:06.756980906 +0200
|
|
|
|
@@ -270,7 +270,7 @@
|
2015-06-13 01:03:31 +02:00
|
|
|
//usage: "\n -i Inetd mode"
|
|
|
|
//usage: "\n -f Don't daemonize"
|
|
|
|
//usage: "\n -v[v] Verbose"
|
|
|
|
-//usage: "\n -p [IP:]PORT Bind to IP:PORT (default *:80)"
|
|
|
|
+//usage: "\n -p [IP:]PORT Bind to IP:PORT (default *:8080)"
|
|
|
|
//usage: IF_FEATURE_HTTPD_SETUID(
|
|
|
|
//usage: "\n -u USER[:GRP] Set uid/gid after binding to port")
|
|
|
|
//usage: IF_FEATURE_HTTPD_BASIC_AUTH(
|
2021-08-19 16:57:02 +02:00
|
|
|
@@ -538,7 +538,7 @@
|
|
|
|
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
|
2015-06-13 01:03:31 +02:00
|
|
|
IF_FEATURE_HTTPD_BASIC_AUTH(g_realm = "Web Server Authentication";) \
|
|
|
|
IF_FEATURE_HTTPD_RANGES(range_start = -1;) \
|
|
|
|
- bind_addr_or_port = "80"; \
|
|
|
|
+ bind_addr_or_port = "8080"; \
|
|
|
|
index_page = index_html; \
|
|
|
|
file_size = -1; \
|
|
|
|
} while (0)
|
2021-08-19 16:57:02 +02:00
|
|
|
@@ -1030,7 +1030,7 @@
|
2015-06-13 01:03:31 +02:00
|
|
|
if (!errno && n && n <= 0xffff)
|
|
|
|
n = create_and_bind_stream_or_die(NULL, n);
|
|
|
|
else
|
|
|
|
- n = create_and_bind_stream_or_die(bind_addr_or_port, 80);
|
|
|
|
+ n = create_and_bind_stream_or_die(bind_addr_or_port, 8080);
|
|
|
|
xlisten(n, 9);
|
|
|
|
return n;
|
|
|
|
}
|
2021-08-19 16:57:02 +02:00
|
|
|
@@ -2279,7 +2279,7 @@
|
2019-11-11 20:30:21 +01:00
|
|
|
if (proxy_entry) {
|
|
|
|
if (verbose > 1)
|
|
|
|
bb_error_msg("proxy:%s", urlcopy);
|
|
|
|
- lsa = host2sockaddr(proxy_entry->host_port, 80);
|
|
|
|
+ lsa = host2sockaddr(proxy_entry->host_port, 8080);
|
|
|
|
if (!lsa)
|
|
|
|
send_headers_and_exit(HTTP_INTERNAL_SERVER_ERROR);
|
|
|
|
proxy_fd = socket(lsa->u.sa.sa_family, SOCK_STREAM, 0);
|