Skip to content

Commit

Permalink
Use icanhazip.com to get the ip
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidoine committed Mar 30, 2015
1 parent d462017 commit 462f6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DynDnsUpdater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static void Main(string[] args)
var password = args[3];

var webClient = new WebClient();
var ip = webClient.DownloadString("http://sidoine.net/cgi-bin/ip.pl");
var ip = webClient.DownloadString("http://icanhazip.com/");
ip = ip.Trim(new[] {'\r', '\n', ' '});
string credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes(userName + ":" + password));
webClient.Headers[HttpRequestHeader.Authorization] = string.Format("Basic {0}", credentials);
Expand Down

0 comments on commit 462f6b7

Please sign in to comment.