Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
iamlinhui committed May 30, 2022
1 parent f6018ef commit 2b371e0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ private List<String> fillRemoteResult(ChannelHandlerContext context, Meta meta)
}

private void registerHttp(ChannelHandlerContext context, Meta meta, RemoteConfig remoteConfig, List<String> domainList, CountDownLatch countDownLatch) {
if (Config.getServerConfig().getHttpPort() == 0 && Config.getServerConfig().getHttpsPort() == 0) {
meta.setConnection(false).addRemoteResult("服务端未开启HTTP穿透功能");
countDownLatch.countDown();
return;
}
if (!StringUtils.hasText(remoteConfig.getDomain())) {
meta.setConnection(false).addRemoteResult(String.format("服务端绑定域名[%s]不合法", remoteConfig.getDomain()));
countDownLatch.countDown();
Expand Down

0 comments on commit 2b371e0

Please sign in to comment.