Commit | Line | Data |
---|---|---|
5aad30fa FF |
1 | diff -u -r ../busybox-1.27.1/networking/httpd.c ./networking/httpd.c |
2 | --- ../busybox-1.27.1/networking/httpd.c 2017-07-06 15:14:57.000000000 +0000 | |
3 | +++ ./networking/httpd.c 2017-07-24 23:41:41.454424822 +0000 | |
4 | @@ -234,7 +234,7 @@ | |
59f0d218 FF |
5 | //usage: "\n -i Inetd mode" |
6 | //usage: "\n -f Don't daemonize" | |
7 | //usage: "\n -v[v] Verbose" | |
8 | -//usage: "\n -p [IP:]PORT Bind to IP:PORT (default *:80)" | |
9 | +//usage: "\n -p [IP:]PORT Bind to IP:PORT (default *:8080)" | |
10 | //usage: IF_FEATURE_HTTPD_SETUID( | |
11 | //usage: "\n -u USER[:GRP] Set uid/gid after binding to port") | |
12 | //usage: IF_FEATURE_HTTPD_BASIC_AUTH( | |
5aad30fa | 13 | @@ -491,7 +491,7 @@ |
59f0d218 FF |
14 | SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \ |
15 | IF_FEATURE_HTTPD_BASIC_AUTH(g_realm = "Web Server Authentication";) \ | |
16 | IF_FEATURE_HTTPD_RANGES(range_start = -1;) \ | |
17 | - bind_addr_or_port = "80"; \ | |
18 | + bind_addr_or_port = "8080"; \ | |
19 | index_page = index_html; \ | |
20 | file_size = -1; \ | |
21 | } while (0) | |
5aad30fa | 22 | @@ -1007,7 +1007,7 @@ |
59f0d218 FF |
23 | if (!errno && n && n <= 0xffff) |
24 | n = create_and_bind_stream_or_die(NULL, n); | |
25 | else | |
26 | - n = create_and_bind_stream_or_die(bind_addr_or_port, 80); | |
27 | + n = create_and_bind_stream_or_die(bind_addr_or_port, 8080); | |
28 | xlisten(n, 9); | |
29 | return n; | |
30 | } | |
5aad30fa FF |
31 | @@ -2396,7 +2396,7 @@ |
32 | int proxy_fd; | |
33 | len_and_sockaddr *lsa; | |
34 | ||
59f0d218 FF |
35 | - lsa = host2sockaddr(proxy_entry->host_port, 80); |
36 | + lsa = host2sockaddr(proxy_entry->host_port, 8080); | |
37 | if (lsa == NULL) | |
38 | send_headers_and_exit(HTTP_INTERNAL_SERVER_ERROR); | |
5aad30fa | 39 | proxy_fd = socket(lsa->u.sa.sa_family, SOCK_STREAM, 0); |