mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 03:05:30 -04:00
Fixed blacklist not working when empty (because, exists
is true if the list is empty...)
This commit is contained in:
parent
4931f8e84a
commit
cb69a4b386
@ -213,7 +213,7 @@ object InternetCard {
|
||||
if (Settings.get.httpHostWhitelist.length > 0 && !Settings.get.httpHostWhitelist.exists(_(inetAddress, host))) {
|
||||
throw new FileNotFoundException("address is not whitelisted")
|
||||
}
|
||||
if (Settings.get.httpHostBlacklist.exists(_(inetAddress, host))) {
|
||||
if (Settings.get.httpHostBlacklist.length > 0 && Settings.get.httpHostBlacklist.exists(_(inetAddress, host))) {
|
||||
throw new FileNotFoundException("address is blacklisted")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user