public static ForwardedRemoteAddressResolver maxTrustedIndex(final int maxTrustedIndex) {
        Assert.isTrue(maxTrustedIndex > 0, "An index greater than 0 is required");
        return new ForwardedRemoteAddressResolver(maxTrustedIndex);
    }
Max trusted index forwarded remote address resolver.

@param maxTrustedIndex the max trusted index
@return the forwarded remote address resolver
shenyu-web/src/main/java/org/apache/shenyu/web/forward/ForwardedRemoteAddressResolver.java