BungeeAdminTools icon indicating copy to clipboard operation
BungeeAdminTools copied to clipboard

IPv6 Support

Open Trikolon opened this issue 7 years ago • 2 comments

The plugin doesn't seem to support IPv6 connections. I've just tested this by connecting to a BungeeCord instance via IPv6: image

Trikolon avatar Jul 18 '18 23:07 Trikolon

Gained some more insight: The error occurs because of this check for valid ip: https://github.com/alphartdev/BungeeAdminTools/blob/master/src/main/java/fr/Alphart/BAT/Modules/Ban/Ban.java#L216

Since the regex for the IP check only matches IPv4 it will treat IPv6 adresses as "players" and will send those to the Mojang API. The API returns a null pointer, hence the exception.

Trikolon avatar Jul 18 '18 23:07 Trikolon

@Trikolon You mean REGEX recognises only ipv4 ? So v6 is detected as a player.

yannicklamprecht avatar Jul 19 '18 16:07 yannicklamprecht