change file extension for filter lists

this means that IDEs should now recognise comments
This commit is contained in:
Piotr W. committed 2026-04-22 14:28:26 +01:00
1 parent c304dde363
commit 68ee8668ee
4 files changed
+5 -4

No files matched your search

@@ -99,8 +99,8 @@ public final class FirewallModule extends AbstractModule {
@Override
public void onRegister() {
// populate the default configs
plugin.saveResource("allowlist.txt", false);
plugin.saveResource("blocklist.txt", false);
plugin.saveResource("allowlist.cfg", false);
plugin.saveResource("blocklist.cfg", false);
// store the config
ConfigurationSection firewallConfig = Objects.requireNonNull(
File renamed without changes.
@@ -2,3 +2,4 @@
# 0.0.0.0/0 # Blocks ALL IPv4 Addresses
# ::/0 # Blocks ALL IPv6 Addresses
# Add custom entries below:
192.168.1.151/32
+2 -2
View File
@@ -59,7 +59,7 @@ firewall:
# - Local file paths are relative to the plugin's config directory
# i.e. plugins/Szlaban/
blocklists:
- blocklist.txt
- blocklist.cfg
- https://github.com/pebblehost/hunter/raw/refs/heads/master/ips.txt
# A list of files containing IPs/CIDR ranges that should always be allowed
@@ -69,7 +69,7 @@ firewall:
# While there isn't a deny-all mode by default, this can be achieved quite easily
# by adding 0.0.0.0/0 and ::/0 to your blocklists.
allowlists:
- allowlist.txt
- allowlist.cfg
# How often (in seconds) the plugin should automatically re-read the contents of
# each kind of blocklist file.