add: increase IPV6_PREFIX_BYTES (8 -> 16)

This commit is contained in:
trisua 2025-06-22 03:02:44 -04:00
parent 958979cfa1
commit d1a074eaeb
2 changed files with 2 additions and 5 deletions

View file

@ -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.

View file

@ -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)]