Skip to content

Commit

Permalink
fix: Obtain the correct IP address for the static worker
Browse files Browse the repository at this point in the history
  • Loading branch information
mycxu committed Oct 22, 2024
1 parent 322ad90 commit 3897dd1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void updateStorageSpace() throws IOException {
current = staticWorkerRepo.save(current);
}

public String getLocalHostExactAddress() throws IOException {
private String getLocalHostExactAddress() throws IOException {
Enumeration<NetworkInterface> allNetworkInterfaces = NetworkInterface.getNetworkInterfaces();
while (allNetworkInterfaces.hasMoreElements()) {
NetworkInterface networkInterface = allNetworkInterfaces.nextElement();
Expand Down

0 comments on commit 3897dd1

Please sign in to comment.