Made it get the public ipv4 address

This commit is contained in:
Derek S 2021-04-06 12:59:07 -05:00
parent bdee2d039b
commit 5d8c44317d

View file

@ -24,7 +24,7 @@ namespace LightReflectiveMirror
instance = this;
_startupTime = DateTime.Now;
using (WebClient wc = new WebClient())
publicIP = wc.DownloadString("http://icanhazip.com").Replace("\\r", "").Replace("\\n", "").Trim();
publicIP = wc.DownloadString("http://ipv4.icanhazip.com").Replace("\\r", "").Replace("\\n", "").Trim();
if (!File.Exists(CONFIG_PATH))
{