Repository navigation
|
My app works on every network I test on. Why is inet_addr or gethostbyname a review risk? |
Answered by
mjmirza
Nov 15, 2026
Replies: 1 comment
|
Guideline 2.5.5 requires apps to be fully functional on IPv6 only networks, and App Review tests on one. Use The guard reads your Swift, Objective-C, C, C++ and Objective-C++ sources and skips vendored folders such as Pods, vendor and ThirdParty. It is medium because IPv4 fallback code can sit beside working IPv6 code, so confirm with a real NAT64 test. |
0 replies
Answer selected by
mjmirza
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Guideline 2.5.5 requires apps to be fully functional on IPv6 only networks, and App Review tests on one.
inet_addr,inet_atonandgethostbynameresolve or connect with IPv4 only, so the app can fail there while working on your network.Use
getaddrinfo, Network.framework or URLSession, and avoid hardcoded IPv4 literals. Test with Mac Internet Sharing and Create NAT64 Network.The guard reads your Swift, Objective-C, C, C++ and Objective-C++ sources and skips vendored folders such as Pods, vendor and ThirdParty. It is medium because IPv4 fallback code can sit beside working IPv6 code, so confirm with a real NAT64 test.