mirror of
https://github.com/timvisee/lazymc.git
synced 2025-05-19 12:50:23 -07:00
Mixing up my booleans myself
This commit is contained in:
parent
5c7e17b0ae
commit
fdeb7594c2
@ -84,7 +84,7 @@ fn route(inbound: TcpStream, config: Arc<Config>, server: Arc<Server>) {
|
||||
|
||||
// Check ban state, just drop connection if enabled
|
||||
let banned = server.is_banned_ip_blocking(&peer.ip());
|
||||
if !banned && config.server.drop_banned_ips {
|
||||
if banned && config.server.drop_banned_ips {
|
||||
info!(target: "lazymc", "Connection from banned IP {}, dropping", peer.ip());
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user