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,
|
permissions::FinePermission,
|
||||||
};
|
};
|
||||||
use crate::{auto_method, DataManager};
|
use crate::{auto_method, DataManager};
|
||||||
|
use oiseau::{execute, get, query_rows, params, PostgresRow};
|
||||||
use oiseau::PostgresRow;
|
|
||||||
|
|
||||||
use oiseau::{execute, get, query_rows, params};
|
|
||||||
|
|
||||||
impl DataManager {
|
impl DataManager {
|
||||||
/// Get a [`Question`] from an SQL row.
|
/// Get a [`Question`] from an SQL row.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
|
|
||||||
/// How many bytes should be taken as the prefix (from the begining of the address).
|
/// 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`].
|
/// The protocol of a [`RemoteAddr`].
|
||||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue