Skip to content

Commit

Permalink
Merge pull request #435 from lostsnow/fix/agent-register-server-env
Browse files Browse the repository at this point in the history
fixes agent register server env
  • Loading branch information
lostsnow authored Dec 16, 2022
2 parents b865e45 + de90044 commit 7596668
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private String generateAgentRegisterMsg() {
object.put("network", readIpInfo());
object.put("serverEnv", Base64Encoder
.encodeBase64String(System.getProperties().toString().getBytes(Charset.forName("UTF-8")))
.replaceAll("\n", ""));
.replaceAll("\n", "").replaceAll("\r", ""));
object.put("containerName", null == server ? "" : server.getName());
object.put("containerVersion", null == server ? "" : server.getVersion());
object.put("serverPath", ServerDetect.getWebServerPath());
Expand Down

0 comments on commit 7596668

Please sign in to comment.