Skip to content

Commit df27e70

Browse files
Hide IP address. Return just host name.
1 parent 8b81d69 commit df27e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/pl/project13/maven/git/GitCommitIdMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ void loadBuildTimeData(@NotNull Properties properties) {
479479
void loadBuildHostData(@NotNull Properties properties) {
480480
String buildHost = null;
481481
try {
482-
buildHost = InetAddress.getLocalHost().toString();
482+
buildHost = InetAddress.getLocalHost().getHostName();
483483
} catch (UnknownHostException e) {
484484
log("Unable to get build host");
485485
}

0 commit comments

Comments
 (0)