Ignore malformed LAN advertisements instead of crashing.
This matches the behaviour for online game handling.
This commit is contained in:
@@ -317,8 +317,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
if (addressNode != null)
|
if (addressNode != null)
|
||||||
addressNode.Value.Value = bl.Address.ToString().Split(':')[0] + ":" + addressNode.Value.Value.Split(':')[1];
|
addressNode.Value.Value = bl.Address.ToString().Split(':')[0] + ":" + addressNode.Value.Value.Split(':')[1];
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
lanGames.Add(new GameServer(game));
|
lanGames.Add(new GameServer(game));
|
||||||
}
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var groupedLanGames = lanGames.GroupBy(gs => gs.Address).Select(g => g.Last());
|
var groupedLanGames = lanGames.GroupBy(gs => gs.Address).Select(g => g.Last());
|
||||||
|
|||||||
Reference in New Issue
Block a user