mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Code re-formatting (#1176)
This commit is contained in:
parent
ea5a2d4fa2
commit
6bd132d3ff
1 changed files with 3 additions and 3 deletions
|
@ -67,9 +67,9 @@ if (strlen($peer_id) !== 20) {
|
||||||
|
|
||||||
// Check for client ban
|
// Check for client ban
|
||||||
if ($bb_cfg['client_ban']['enabled']) {
|
if ($bb_cfg['client_ban']['enabled']) {
|
||||||
foreach (array_keys($bb_cfg['client_ban']['clients']) as $client) {
|
foreach ($bb_cfg['client_ban']['clients'] as $clientId => $reason) {
|
||||||
if (str_starts_with($peer_id, $client)) {
|
if (str_starts_with($peer_id, $clientId)) {
|
||||||
msg_die($bb_cfg['client_ban']['clients'][$client]);
|
msg_die($reason);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue