Add two functions to check type of given address#36707
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
faf7dbb to
61fe7a6
Compare
|
@alexcrichton I was looking for a way to |
|
Thanks for the PR @achanda! This seems pretty reasonable to me. I'd be fine even adding Thoughts @rust-lang/libs ? Also looks like the travis failure may need to be resolved before landing. |
|
@alexcrichton makes sense, I will have a PR up for those as well once I fix these tests here. |
2b28259 to
def4ed7
Compare
|
Looks like this needs a |
|
@achanda sure yeah, just postponing to discuss the new feature in a libs triage |
|
Ah, sorry for rushing! |
|
@rfcbot fcp merge |
|
I think the last piece of functionality we'd want here is a tracking issue and a specific |
|
FCP proposed with disposition to merge. Review requested from: No concerns currently listed. |
|
@alexcrichton sorry, should I add the |
|
@achanda sure if you'd like! This is likely to be accepted so if you want to go ahead and open an issue for this as well I can tag it and you can reference it. Also don't worry, rfcbot is hot new technology for us too! |
The is_v4 function returns true if the given IP is v4. The is_v6 function returns true if the IP is v6.
|
@alexcrichton done! |
|
📌 Commit 80a7a3c has been approved by |
Add two functions to check type of given address The is_v4 function returns true if the given IP is v4. The is_v6 function returns true if the IP is v6.
|
@alexcrichton proposal cancelled. |
The is_v4 function returns true if the given IP is v4. The is_v6
function returns true if the IP is v6.