add: increase IPV6_PREFIX_BYTES (8 -> 16)
This commit is contained in:
parent
958979cfa1
commit
d1a074eaeb
2 changed files with 2 additions and 5 deletions
|
@ -11,10 +11,7 @@ use crate::model::{
|
|||
permissions::FinePermission,
|
||||
};
|
||||
use crate::{auto_method, DataManager};
|
||||
|
||||
use oiseau::PostgresRow;
|
||||
|
||||
use oiseau::{execute, get, query_rows, params};
|
||||
use oiseau::{execute, get, query_rows, params, PostgresRow};
|
||||
|
||||
impl DataManager {
|
||||
/// Get a [`Question`] from an SQL row.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use std::net::SocketAddr;
|
||||
|
||||
/// How many bytes should be taken as the prefix (from the begining of the address).
|
||||
pub(crate) const IPV6_PREFIX_BYTES: usize = 8;
|
||||
pub(crate) const IPV6_PREFIX_BYTES: usize = 16;
|
||||
|
||||
/// The protocol of a [`RemoteAddr`].
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue