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

View file

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