| 1 | diff -u -r ../busybox-1.22.1/networking/httpd.c ./networking/httpd.c |
| 2 | --- ../busybox-1.22.1/networking/httpd.c 2014-01-09 19:15:44.000000000 +0100 |
| 3 | +++ ./networking/httpd.c 2014-01-20 08:47:37.000000000 +0100 |
| 4 | @@ -112,7 +112,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 | @@ -371,7 +371,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 | @@ -887,7 +887,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 | @@ -2245,7 +2245,7 @@ |
| 32 | proxy_fd = socket(AF_INET, SOCK_STREAM, 0); |
| 33 | if (proxy_fd < 0) |
| 34 | send_headers_and_exit(HTTP_INTERNAL_SERVER_ERROR); |
| 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 | if (connect(proxy_fd, &lsa->u.sa, lsa->len) < 0) |