wayddmldbzz
wayddmldbzz
红框中方法本身是closeFuture() 改成close()似乎问题解决了.  参考 https://github.com/netty/netty/issues/9076 
在你的例子上改了改 好使了,但是因为证书的关系被替换的url跟原先url前三级域名必须一致,可以改第四级,不知道怎么解,我把代码发出来您给看看改的对不 还有一个问题;您里面HttpProxyIntercept这个类里面对应四个方法是能拿到请求和响应的所有数据, 但是我想一次性把某个请求的所有请求头、请求体、响应头、响应体都收集完整后在返回给别的地方, 所以我想问这个这个类下面的方法是被串行调用的吗? ``` package com.github.monkeywie.proxyee; import com.github.monkeywie.proxyee.exception.HttpProxyExceptionHandle; import com.github.monkeywie.proxyee.intercept.HttpProxyIntercept; import com.github.monkeywie.proxyee.intercept.HttpProxyInterceptInitializer; import com.github.monkeywie.proxyee.intercept.HttpProxyInterceptPipeline; import com.github.monkeywie.proxyee.server.HttpProxyServer; import com.github.monkeywie.proxyee.server.HttpProxyServerConfig; import io.netty.channel.Channel; import io.netty.handler.codec.http.*; /** * @Author: LiWei * @Description...
这个我试过比如过来的请求本身想请求“a.stage.bbb.com”,我给改成“a.dev.bbb.com” 这时候转发是不成功的,服务也没有日志
@monkeyWie 哥们还有个问题,在我配上代理后有些软件(其实就是请求)是可以正常转发的,但是有些就转发不了不能用了,日志会提示一个异常,后来我想了下像这些不能抓包的软件(请求)能否过滤下不进行抓包(应该就是证书验证)直接转发,比如charles那样抓不了包的也可以转发 错误日志:(比如美拍,配上代理后加上证书后不能用) io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:475) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:283) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1421) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) at...
``` .proxyInterceptInitializer(new HttpProxyInterceptInitializer() { @Override public void init(HttpProxyInterceptPipeline pipeline) { pipeline.addLast(new HttpProxyIntercept() { @Override public void beforeRequest(Channel clientChannel, HttpRequest httpRequest, HttpProxyInterceptPipeline pipeline) throws Exception { jsonArray.forEach(o -> { JSONObject jsonObject...
@monkeyWie 不是修改uri,使用的时候一个域名下面有很多uri(其实就是有很多接口),如果所有接口都修改域名地址是没问题的,但是我如果要判断这个域名下某个uri修改域名地址,其余的uri不修改,这样的话修改的是不生效的