Skip to content

Commit 5e9a352

Browse files
committed
调整了版本号,增加了一些关键TODO
Signed-off-by: Sadam·Sadik <1903249375@qq.com>
1 parent 7fec6f3 commit 5e9a352

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

proxy-server/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<artifactId>proxy-server</artifactId>
1010
<packaging>jar</packaging>
1111
<name>proxy-server</name>
12+
<version>${parent.version}.1</version>
1213
<url>http://maven.apache.org</url>
1314
<dependencies>
1415
<dependency>

proxy-server/src/main/java/org/fengfei/lanproxy/server/ProxyServerContainer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ private void startUserPort() {
128128

129129
@Override
130130
public void initChannel(SocketChannel ch) throws Exception {
131+
// // TODO: 这里实现一个流量和访问日志的记录
132+
logger.info("{}===>{}", ch.remoteAddress(), ch.localAddress());
131133
ch.pipeline().addFirst(new BytesMetricsHandler());
132134
ch.pipeline().addLast(new UserChannelHandler());
133135
}
@@ -171,7 +173,7 @@ private ChannelHandler createSslHandler(SSLContext sslContext, boolean needsClie
171173
}
172174

173175
public static void main(String[] args) {
174-
ContainerHelper.start(Arrays.asList(new Container[] { new ProxyServerContainer(), new WebConfigContainer() }));
176+
ContainerHelper.start(Arrays.asList(new Container[]{new ProxyServerContainer(), new WebConfigContainer()}));
175177
}
176178

177179
}

0 commit comments

Comments
 (0)