Changeset 2149506c942876bb56cadc9448c64b2c558b6bd5

Show
Ignore:
Timestamp:
04/05/07 23:48:04 (2 years ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1178315284 +0000
git-parent:

[d849f0bc4be00adb17f707751dbe9b27158e09c6]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1178315284 +0000
Message:

* mmsh.c: Try using the http-proxy config option if mmsh-proxy wasn't set (Untested).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access/mms/mmsh.c

    rc3ec36d r2149506  
    4242 
    4343/* TODO: 
    44  *  - http_proxy 
    4544 *  - authentication 
    4645 */ 
     
    105104    /* TODO reuse instead http-proxy from http access ? */ 
    106105    psz_proxy = var_CreateGetString( p_access, "mmsh-proxy" ); 
     106    if( !*psz_proxy ) 
     107    { 
     108        char *psz_http_proxy = config_GetPsz( p_access, "http-proxy" ); 
     109        if( psz_http_proxy && *psz_http_proxy ) 
     110        { 
     111            free( psz_proxy ); 
     112            psz_proxy = psz_http_proxy; 
     113            var_SetString( p_access, "mmsh-proxy", psz_proxy ); 
     114        } 
     115        else 
     116        { 
     117            free( psz_http_proxy ); 
     118        } 
     119    } 
    107120    if( *psz_proxy ) 
    108121    {