forked from leftypol/leftypol
Block D+ on special IP addresses
This commit is contained in:
parent
2dee1c1f38
commit
bbf7ced5db
1 changed files with 3 additions and 0 deletions
|
@ -2216,6 +2216,9 @@ function mod_deletebyip($boardName, $post, $global = false) {
|
|||
if (!$ip = $query->fetchColumn())
|
||||
error($config['error']['invalidpost']);
|
||||
|
||||
// HACK: Prevent D+ or D++ deletion of Tor node or migration placeholder IP
|
||||
if ($ip == "127.0.0.1" || $ip == "127.0.0.2") {error("Don't nuke ".$ip);}
|
||||
|
||||
$boards = $global ? listBoards() : array(array('uri' => $boardName));
|
||||
|
||||
$query = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue