fix announce isIPSeedBox

This commit is contained in:
xiaomlove
2022-09-13 00:50:56 +08:00
parent 480ed17b03
commit 9a00c17ea5

View File

@@ -331,7 +331,7 @@ if(isset($self) && empty($_GET['event']) && $self['prevts'] > (TIMENOW - $announ
$isSeedBoxRuleEnabled = get_setting('seed_box.enabled') == 'yes';
$isIPSeedBox = false;
if ($isSeedBoxRuleEnabled && !($az['class'] >= \App\Models\User::CLASS_VIP || $isDonor)) {
if ($isSeedBoxRuleEnabled) {
if (!empty($ipv4)) {
$isIPSeedBox = isIPSeedBox($ipv4, $userid);
}