Skip to content

Commit

Permalink
Better IP filter
Browse files Browse the repository at this point in the history
  • Loading branch information
DAMcraft committed Aug 5, 2023
1 parent 75ea897 commit 7e1a9bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class BungeeSpoof extends Module {
.name("spoofed-address")
.description("The spoofed IP address that will be sent to the server.")
.defaultValue("127.0.0.1")
.filter((text, c) -> "1234567890.".contains(""+c))
.filter((text, c) -> (text + c).matches("^[0-9a-f\\\\.:]{0,45}$"))
.build()
);

Expand Down

0 comments on commit 7e1a9bb

Please sign in to comment.