Skip to content

Commit

Permalink
调整了版本号,增加了一些关键TODO
Browse files Browse the repository at this point in the history
Signed-off-by: Sadam·Sadik <[email protected]>
  • Loading branch information
Haoke98 committed Mar 20, 2024
1 parent 7fec6f3 commit 5e9a352
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions proxy-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<artifactId>proxy-server</artifactId>
<packaging>jar</packaging>
<name>proxy-server</name>
<version>${parent.version}.1</version>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ private void startUserPort() {

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

public static void main(String[] args) {
ContainerHelper.start(Arrays.asList(new Container[] { new ProxyServerContainer(), new WebConfigContainer() }));
ContainerHelper.start(Arrays.asList(new Container[]{new ProxyServerContainer(), new WebConfigContainer()}));
}

}

0 comments on commit 5e9a352

Please sign in to comment.