forked from Chia-Network/chia-blockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before calling gethostbyname(); check if host is an address (Chia-Net…
…work#8765) * Before calling gethostbyname(), check to see if we already have an address. That prevents an unnecessary call, and also allows for specifying IPv6 addresses which otherwise cause exceptions here. * Also recognize addresses when passed to timelord spawn_process, so that IPv6 addresses can be used. * Missed importing PeerInfo * Adjust style to match requirements and existing code * Cast PeerInfo port to uint16
- Loading branch information
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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