-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Could you tell me why this request gives me back my real IP?
var remoteParams = new ClientRemoteParams("127.0.0.1", 9051);
var client = Client.CreateForRemote(remoteParams);
if (!client.IsRunning || !client.Proxy.IsRunning) throw new Exception("Socks proxy not running");
var handler = new HttpClientHandler();
handler.UseProxy = true;
handler.Proxy = client.Proxy.WebProxy;
using (var httpClient = new HttpClient(handler))
{
var content = httpClient.GetAsync("http://ipv4.icanhazip.com/").Result.Content.ReadAsStringAsync().Result;
Console.WriteLine(content);
}
Metadata
Metadata
Assignees
Labels
No labels