Skip to content

Commit cd57342

Browse files
authored
Merge pull request #4990 from chengtx01/release_v4.7.1
fix(net):change the default IP of the node
2 parents 1450156 + a3628fd commit cd57342

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • framework/src/main/java/org/tron/core/config/args

framework/src/main/java/org/tron/core/config/args/Args.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,8 +1351,8 @@ private static void bindIp(final com.typesafe.config.Config config) {
13511351
PARAMETER.nodeDiscoveryBindIp = s.getLocalAddress().getHostAddress();
13521352
logger.info("UDP local bound to: {}", PARAMETER.nodeDiscoveryBindIp);
13531353
} catch (IOException e) {
1354-
logger.warn("Can't get bind IP. Fall back to 0.0.0.0: " + e);
1355-
PARAMETER.nodeDiscoveryBindIp = "0.0.0.0";
1354+
logger.warn("Can't get bind IP. Fall back to 127.0.0.1: " + e);
1355+
PARAMETER.nodeDiscoveryBindIp = "127.0.0.1";
13561356
}
13571357
}
13581358
} else {

0 commit comments

Comments
 (0)