public static boolean checkUrl(final String url, final int timeout) {
        if (StringUtils.isBlank(url)) {
            return false;
        }
        String[] hostPort;
        if (url.startsWith(HTTP) || url.startsWith(HTTPS)) {
            final String[] http = StringUtils.split(url, "\\/\\/");
            hostPort = StringUtils.split(http[1], Constants.COLONS);
        } else {
            hostPort = StringUtils.split(url, Constants.COLONS);
        }
        final boolean isHttps = url.startsWith(HTTPS);
        final int port = hostPort.length > 1 ? Integer.parseInt(hostPort[1].trim()) : isHttps ? 443 : 80;
        return isHostConnector(hostPort[0].trim(), port, timeout);
    }
Check url boolean.

@param url     the url
@param timeout timeout
@return the boolean
shenyu-common/src/main/java/org/apache/shenyu/common/utils/UpstreamCheckUtils.java