Merge branch 'tW4r-patch-1' into master
See https://github.com/timvisee/lazymc/pull/44
This commit is contained in:
commit
eb5ee7defd
@ -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 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