mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 19:50:40 -05:00
Merge pull request #3888 from Roardom/fix-blacklisted-agent-external-tracker
(Fix) Adding blacklisted clients to external tracker
This commit is contained in:
@@ -256,14 +256,14 @@ class Unit3dAnnounce
|
||||
public static function addBlacklistedAgent(BlacklistClient $blacklistedAgent): bool
|
||||
{
|
||||
return self::put('blacklisted-agents', [
|
||||
'name' => $blacklistedAgent->name,
|
||||
'peer_id_prefix' => $blacklistedAgent->name,
|
||||
]);
|
||||
}
|
||||
|
||||
public static function removeBlacklistedAgent(BlacklistClient $blacklistedClient): bool
|
||||
{
|
||||
return self::delete('blacklisted-agents', [
|
||||
'name' => $blacklistedClient->name,
|
||||
'peer_id_prefix' => $blacklistedClient->name,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user