mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix for array check
This commit is contained in:
parent
a456232e05
commit
0ae106335b
1 changed files with 1 additions and 1 deletions
2
app.rb
2
app.rb
|
@ -281,7 +281,7 @@ post '/admin/banhammer' do
|
||||||
site.save validate: false
|
site.save validate: false
|
||||||
}
|
}
|
||||||
|
|
||||||
if !['127.0.0.1', 'nil', ''].include? site.ip
|
if !['127.0.0.1', nil, ''].include? site.ip
|
||||||
`sudo ufw deny from #{site.ip}`
|
`sudo ufw deny from #{site.ip}`
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue