Skip to content

Commit

Permalink
RTMPDump usa socks5 mientras que webrequest usa http proxy. Para faci…
Browse files Browse the repository at this point in the history
…litar el problema dejo el proxy sólo para RTMPDump.
  • Loading branch information
forestrf committed Apr 25, 2014
1 parent 9fb07c3 commit e171c7e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Project files/RTMP-Downloader/MainClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,11 @@ public static void Main (string[] cmdLine)
}
//Descargar urlhttp para usar el contenido como url
try{
WebClient client = new WebClient();
if(configs.proxy != null && configs.proxy != ""){
WebProxy wp = new WebProxy(configs.proxy);
client.Proxy = wp;
}
url = client.DownloadString(urlhttp);
/*if(configs.proxy != null && configs.proxy != ""){}
else*/
url = new WebClient().DownloadString(urlhttp);


Debug.WriteLine(Utilidades.WL("url descargada desde urlhttp = "+url));
Debug.WriteLine(Utilidades.WL("Poniendo la descarga en cola"));
var t = new Thread(() => lanzaDescarga(url, nombre));
Expand Down

0 comments on commit e171c7e

Please sign in to comment.