mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-21 02:04:31 +00:00
Update binaries/cuprated/src/rpc/handlers/json_rpc.rs
Co-authored-by: Boog900 <boog900@tutanota.com>
This commit is contained in:
parent
bc6fc0ae13
commit
c7443c9140
1 changed files with 1 additions and 2 deletions
|
@ -639,8 +639,7 @@ async fn set_bans(
|
|||
// TODO: support non-clearnet addresses.
|
||||
|
||||
// <https://architecture.cuprate.org/oddities/le-ipv4.html>
|
||||
let [a, b, c, d] = peer.ip.to_le_bytes();
|
||||
let ip = Ipv4Addr::new(a, b, c, d);
|
||||
let ip = Ipv4Addr::from(peer.ip.to_le_bytes());
|
||||
let address = SocketAddr::V4(SocketAddrV4::new(ip, 0));
|
||||
|
||||
let ban = if peer.ban {
|
||||
|
|
Loading…
Reference in a new issue