private static String getName(final String name) {
        Matcher matcher = NET_CARD_PATTERN.matcher(name);
        if (matcher.find()) {
            return name.replace(matcher.group(), "");
        }
        return name;
    }
To obtain a prefix.

@param name network interface name
@return the name
shenyu-common/src/main/java/org/apache/shenyu/common/utils/IpUtils.java