mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-16 18:35:05 +08:00
【fix】 http代理顺利验证通过
This commit is contained in:
@ -16,7 +16,7 @@ import java.net.URI;
|
||||
|
||||
public class HttpProxyServer {
|
||||
|
||||
private static final int PORT = 8080;
|
||||
private static final int PORT = 8001;
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
EventLoopGroup bossGroup = new NioEventLoopGroup();
|
||||
@ -30,7 +30,8 @@ public class HttpProxyServer {
|
||||
@Override
|
||||
public void initChannel(SocketChannel ch) throws Exception {
|
||||
ch.pipeline().addLast(
|
||||
new HttpClientCodec(),
|
||||
// new HttpClientCodec(),
|
||||
new io.netty.handler.codec.http.HttpRequestDecoder(),
|
||||
new HttpObjectAggregator(1048576),
|
||||
new HttpProxyServerHandler()
|
||||
);
|
||||
|
Reference in New Issue
Block a user