feat(net): delete config item node.discovery.bind.ip by 317787106 · Pull Request #5597 · tronprotocol/java-tron
Conversation
What does this PR do?
- delete config item node.discovery.bind.ip
- update libp2p version, include snappy-java version
Why are these changes required?
This PR has been tested by:
- Unit Tests
- Manual Testing
Follow up
Extra details
| PARAMETER.nodeDiscoveryBindIp = s.getLocalAddress().getHostAddress(); | ||
| } catch (IOException e) { | ||
| logger.warn("Can't get bind IP. Fall back to 127.0.0.1: " + e); | ||
| PARAMETER.nodeDiscoveryBindIp = "127.0.0.1"; |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should this logic be retained?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the external ip is not exist, use LAN IP.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why hardcoded into www.baidu.com?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@halibobo1205 It has been moved to libp2p module. This url is not necessary and we can use alternative way.
jiangyuanshu added 2 commits
December 27, 2023 15:14This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters