diff --git a/LaunchServer/source/command/ip/IPAllowCommand.java b/LaunchServer/source/command/ip/IPAllowCommand.java index ea3fc4d..409442c 100644 --- a/LaunchServer/source/command/ip/IPAllowCommand.java +++ b/LaunchServer/source/command/ip/IPAllowCommand.java @@ -45,7 +45,7 @@ return; } - if (!IPAddressUtil.isIPv4LiteralAddress(getIP) || !IPAddressUtil.isIPv6LiteralAddress(getIP)) + if (!IPAddressUtil.isIPv4LiteralAddress(getIP) && !IPAddressUtil.isIPv6LiteralAddress(getIP)) { LogHelper.error("This is not an IP address!"); return; diff --git a/LaunchServer/source/command/ip/IPBlockCommand.java b/LaunchServer/source/command/ip/IPBlockCommand.java index e728508..b2ae7a0 100644 --- a/LaunchServer/source/command/ip/IPBlockCommand.java +++ b/LaunchServer/source/command/ip/IPBlockCommand.java @@ -45,7 +45,7 @@ return; } - if (!IPAddressUtil.isIPv4LiteralAddress(getIP) || !IPAddressUtil.isIPv6LiteralAddress(getIP)) + if (!IPAddressUtil.isIPv4LiteralAddress(getIP) && !IPAddressUtil.isIPv6LiteralAddress(getIP)) { LogHelper.error("This is not an IP address!"); return;