potential fix for broadcast error
This commit is contained in:
parent
f251c26102
commit
9365f34399
1 changed files with 2 additions and 4 deletions
|
@ -381,9 +381,6 @@ namespace BackupManager
|
||||||
|
|
||||||
public static void SatoriBroadcast(string text, bool error = false)
|
public static void SatoriBroadcast(string text, bool error = false)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
if (string.IsNullOrEmpty(text)
|
if (string.IsNullOrEmpty(text)
|
||||||
|| Config == null
|
|| Config == null
|
||||||
|| string.IsNullOrWhiteSpace(Config.SatoriHost)
|
|| string.IsNullOrWhiteSpace(Config.SatoriHost)
|
||||||
|
@ -401,7 +398,8 @@ namespace BackupManager
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ip = Dns.GetHostAddresses(Config.SatoriHost).FirstOrDefault();
|
// forcing IPv4 here, it seems to explode with IPv6 and i don't really want to figure out why
|
||||||
|
ip = Dns.GetHostAddresses(Config.SatoriHost).FirstOrDefault(x => x.AddressFamily == AddressFamily.InterNetwork);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|
Reference in a new issue