Browse Source

disable port check quotas for administrators and connected host owner

yggdrasil-0.4.7
ghost 1 year ago
parent
commit
01eeb1b347
  1. 3
      src/public/peer.php

3
src/public/peer.php

@ -130,7 +130,8 @@ if ($requestPort) { @@ -130,7 +130,8 @@ if ($requestPort) {
// Check requests quota
$lastPeerPortStatus = $db->findLastPeerPortStatusByPeerId($requestPeerId);
if ($lastPeerPortStatus &&
if (!Access::address(array_merge([$peerInfo->address], ADMIN_REMOTE_ADDRESS_WHITELIST)) &&
$lastPeerPortStatus &&
$lastPeerPortStatus->timeAdded > time() - WEBSITE_PEER_PORT_CHECK_TIMEOUT) {
$responsePort = (object)

Loading…
Cancel
Save