static method for compressing ipv6 addresses

This commit is contained in:
Fredrik Osterlind 2011-12-12 16:41:09 +01:00
parent 329a75525e
commit cc5547a962

View File

@ -139,7 +139,7 @@ public class IPAddress extends MoteInterface {
return null;
}
public String compressIPv6Address(String ipString) {
public static String compressIPv6Address(String ipString) {
while (ipString.contains(":0000:")) {
ipString = ipString.replaceAll(":0000:", "::");
}