Feature #4748 » Proxy-info-in-webUI.diff
src/http.c | ||
---|---|---|
1360 | 1360 |
http_error(hc, HTTP_STATUS_BAD_REQUEST); |
1361 | 1361 |
return -1; |
1362 | 1362 |
} |
1363 |
hc->hc_is_proxied = 1; |
|
1363 | 1364 |
} |
1364 | 1365 | |
1365 | 1366 |
tcp_get_str_from_ip(hc->hc_peer, authbuf, sizeof(authbuf)); |
... | ... | |
1822 | 1823 |
atomic_set(&hc->hc_extra_insend, 0); |
1823 | 1824 |
atomic_set(&hc->hc_extra_chunks, 0); |
1824 | 1825 | |
1826 |
hc->hc_is_proxied = 0; |
|
1825 | 1827 |
do { |
1826 | 1828 |
hc->hc_no_output = 0; |
1827 | 1829 |
src/http.h | ||
---|---|---|
175 | 175 |
uint8_t hc_no_output; |
176 | 176 |
uint8_t hc_shutdown; |
177 | 177 |
uint8_t hc_is_local_ip; /*< a connection from the local network */ |
178 |
uint8_t hc_is_proxied; |
|
178 | 179 | |
179 | 180 |
/* Support for HTTP POST */ |
180 | 181 |
src/satip/rtsp.c | ||
---|---|---|
1636 | 1636 |
rtsp_stream_status ( void *opaque, htsmsg_t *m ) |
1637 | 1637 |
{ |
1638 | 1638 |
http_connection_t *hc = opaque; |
1639 |
htsmsg_add_str(m, "type", "SAT>IP"); |
|
1639 |
htsmsg_add_str(m, "type", (hc->hc_is_proxied)? "SAT>IP (proxy)" : "SAT>IP");
|
|
1640 | 1640 |
if (hc->hc_username) |
1641 | 1641 |
htsmsg_add_str(m, "user", hc->hc_username); |
1642 | 1642 |
} |
src/webui/webui.c | ||
---|---|---|
357 | 357 |
http_stream_status ( void *opaque, htsmsg_t *m ) |
358 | 358 |
{ |
359 | 359 |
http_connection_t *hc = opaque; |
360 |
htsmsg_add_str(m, "type", "HTTP"); |
|
360 |
htsmsg_add_str(m, "type", (hc->hc_is_proxied)? "HTTP (proxy)" : "HTTP");
|
|
361 | 361 |
if (hc->hc_username) |
362 | 362 |
htsmsg_add_str(m, "user", hc->hc_username); |
363 | 363 |
} |