| 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 @@ |
| 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( |
| 13 | @@ -491,7 +491,7 @@ |
| 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) |
| 22 | @@ -1007,7 +1007,7 @@ |
| 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 | } |
| 31 | @@ -2396,7 +2396,7 @@ |
| 32 | int proxy_fd; |
| 33 | len_and_sockaddr *lsa; |
| 34 | |
| 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); |
| 39 | proxy_fd = socket(lsa->u.sa.sa_family, SOCK_STREAM, 0); |