-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace daddr
checks with ip().is_unspecified()
#656
Comments
Would love to give this a shot! Would just like to clarify if the below snippets are heading in the right direction for this issue?
|
Yes! I would define a function ‘is_valid_address’ which checks that the port is nonzero, and address is not unspecified or multicast |
Ah I see. May I kindly check where would be the best place to define this function? |
Inside the Crdt class, so it can be called context free ‘Crdt::is_valid_address’ |
looks like this can be closed, ref: #721 |
…#656) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.0 to 7.12.3. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.12.3/packages/babel-core) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Rust added a function to IpAddr to check if its unspecified. The code should call that method instead of comparing against
0.0.0.0:0
.The text was updated successfully, but these errors were encountered: