Prevent blank UUIDs from being banned
This fixes a bug with a bad actor getting banned with a blank client UUID and then preventing anyone from joining the server due to a lack of UUID on the Connect Request ban check.
This commit is contained in:
parent
de142e419e
commit
6d5fff83cf
2 changed files with 6 additions and 2 deletions
|
|
@ -1607,7 +1607,7 @@ namespace TShockAPI
|
|||
}
|
||||
}
|
||||
|
||||
if (banUuid)
|
||||
if (banUuid && player.UUID.Length > 0)
|
||||
{
|
||||
banResult = DoBan($"{Identifier.UUID}{player.UUID}", reason, expiration);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue