mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-14 20:27:43 +00:00
static method for compressing ipv6 addresses
This commit is contained in:
@@ -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:", "::");
|
||||
}
|
||||
|
Reference in New Issue
Block a user