[PATCH] basic Proxy support (via http_proxy var)
Fabian Franz <[email protected]>
| Newsgroups | gmane.comp.video.mplayer.g2.devel |
|---|---|
| Message-ID | <[email protected]> |
hi, attached patch adds proxy support. cu Fabian _______________________________________________ MPlayer-G2-dev mailing list [email protected] http://mplayerhq.hu/mailman/listinfo/mplayer-g2-dev
g2-proxy-fix.diff
(text/x-diff, 466 B)
--- g2.old/stream/stream_http.c 2003-04-14 17:08:48.000000000 +0200
+++ g2/stream/stream_http.c 2003-05-23 17:29:19.000000000 +0200
@@ -14,8 +14,9 @@
static int driver_open(stream_t *s){
HTTP_header_t *http_hdr = NULL;
char* c_len;
+ URL_t *url = (URL_t*)check4proxies(s->url);
- s->fd = http_send_request( s->url );
+ s->fd = http_send_request( url );
if( s->fd<0 ) return 0;
http_hdr = http_read_response( s->fd );
if( http_hdr==NULL ) return 0;