mirror of
https://github.com/twisterarmy/twister-analytics-crawler.git
synced 2025-01-30 00:14:15 +00:00
delegate CRC32 encrypting to mysql server
This commit is contained in:
parent
f4f9587dbd
commit
3ca148ec3e
@ -109,7 +109,7 @@ class ModelIp extends Model {
|
||||
`inbound` = ?,
|
||||
`version` = ?,
|
||||
`subVersion` = ?,
|
||||
`subVersionCRC32` = ?,
|
||||
`subVersionCRC32` = CRC32(?),
|
||||
`syncNode` = ?,
|
||||
|
||||
`timeAdded` = UNIX_TIMESTAMP()');
|
||||
|
2
peer.php
2
peer.php
@ -93,7 +93,7 @@ if ($peers = $curlPeer->getAll()) {
|
||||
(int) $peer['inbound'],
|
||||
(int) $peer['version'],
|
||||
preg_replace('/[^\d]/', '', $peer['subver']),
|
||||
crc32($peer['subver']),
|
||||
$peer['subver'],
|
||||
(isset($peer['syncnode']) ? (int) $peer['syncnode'] : 0));
|
||||
} else {
|
||||
$modelLog->add(_('Could not extract peer address or port'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user