public static String getServerHost(ServerConfig server) {
        String host = server.getVirtualHost();
        if (host == null) {
            host = server.getHost();
            if (NetUtils.isLocalHost(host) || NetUtils.isAnyHost(host)) {
                host = SystemInfo.getLocalHost();
            }
        }
        return host;
    }
Init or add list.

@param <K>      the key parameter
@param <V>      the value parameter
@param orginMap the orgin map
@param key      the key
@param needAdd  the need add
core/api/src/main/java/com/alipay/sofa/rpc/registry/utils/RegistryUtils.java