diff --git a/src/main/java/dev/piotr_weychan/szlaban/firewall/FirewallModule.java b/src/main/java/dev/piotr_weychan/szlaban/firewall/FirewallModule.java index 05bf85e..9ef1053 100644 --- a/src/main/java/dev/piotr_weychan/szlaban/firewall/FirewallModule.java +++ b/src/main/java/dev/piotr_weychan/szlaban/firewall/FirewallModule.java @@ -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( diff --git a/src/main/resources/allowlist.txt b/src/main/resources/allowlist.cfg similarity index 100% rename from src/main/resources/allowlist.txt rename to src/main/resources/allowlist.cfg diff --git a/src/main/resources/blocklist.txt b/src/main/resources/blocklist.cfg similarity index 92% rename from src/main/resources/blocklist.txt rename to src/main/resources/blocklist.cfg index 24621cd..b419a52 100644 --- a/src/main/resources/blocklist.txt +++ b/src/main/resources/blocklist.cfg @@ -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 \ No newline at end of file diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index b7114dc..65d8145 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -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.