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
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(
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; \
23 if (!errno && n && n <= 0xffff)
24 n = create_and_bind_stream_or_die(NULL, n);
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);
32 proxy_fd = socket(AF_INET, SOCK_STREAM, 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);
38 send_headers_and_exit(HTTP_INTERNAL_SERVER_ERROR);
39 if (connect(proxy_fd, &lsa->u.sa, lsa->len) < 0)