Fix a compilation error
This commit is contained in:
parent
b6fdac7df3
commit
c7038ed8d6
@ -17,8 +17,8 @@ package io.netty.example.proxy;
|
|||||||
|
|
||||||
import io.netty.channel.ChannelInitializer;
|
import io.netty.channel.ChannelInitializer;
|
||||||
import io.netty.channel.socket.SocketChannel;
|
import io.netty.channel.socket.SocketChannel;
|
||||||
import io.netty.handler.logging.ByteLoggingHandler;
|
|
||||||
import io.netty.handler.logging.LogLevel;
|
import io.netty.handler.logging.LogLevel;
|
||||||
|
import io.netty.handler.logging.LoggingHandler;
|
||||||
|
|
||||||
public class HexDumpProxyInitializer extends ChannelInitializer<SocketChannel> {
|
public class HexDumpProxyInitializer extends ChannelInitializer<SocketChannel> {
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ public class HexDumpProxyInitializer extends ChannelInitializer<SocketChannel> {
|
|||||||
@Override
|
@Override
|
||||||
public void initChannel(SocketChannel ch) throws Exception {
|
public void initChannel(SocketChannel ch) throws Exception {
|
||||||
ch.pipeline().addLast(
|
ch.pipeline().addLast(
|
||||||
new ByteLoggingHandler(LogLevel.INFO),
|
new LoggingHandler(LogLevel.INFO),
|
||||||
new HexDumpProxyFrontendHandler(remoteHost, remotePort));
|
new HexDumpProxyFrontendHandler(remoteHost, remotePort));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user