{"action":"created","issue":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3498","repository_url":"https://api.github.com/repos/AFNetworking/AFNetworking","labels_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3498/labels{/name}","comments_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3498/comments","events_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3498/events","html_url":"https://github.com/AFNetworking/AFNetworking/issues/3498","id":153711956,"number":3498,"title":"Why AFNetworkReachabilityManager support IPv6 need to do conditional compile?","user":{"login":"wtlucky","id":2265430,"avatar_url":"https://avatars.githubusercontent.com/u/2265430?v=3","gravatar_id":"","url":"https://api.github.com/users/wtlucky","html_url":"https://github.com/wtlucky","followers_url":"https://api.github.com/users/wtlucky/followers","following_url":"https://api.github.com/users/wtlucky/following{/other_user}","gists_url":"https://api.github.com/users/wtlucky/gists{/gist_id}","starred_url":"https://api.github.com/users/wtlucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtlucky/subscriptions","organizations_url":"https://api.github.com/users/wtlucky/orgs","repos_url":"https://api.github.com/users/wtlucky/repos","events_url":"https://api.github.com/users/wtlucky/events{/privacy}","received_events_url":"https://api.github.com/users/wtlucky/received_events","type":"User","site_admin":false},"labels":[{"id":207991204,"url":"https://api.github.com/repos/AFNetworking/AFNetworking/labels/reachability","name":"reachability","color":"69B805","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-05-09T06:38:28Z","updated_at":"2016-12-16T08:19:21Z","closed_at":null,"body":"I don't understand why there needs to check the OS_VERSION_MIN_REQUIRED. This mean only the iOS version over 9.0 and OSX version over 10.11 supported IPv6. Is this right?  #3174 \n\n``` objc\n+ (instancetype)manager\n{\n#if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000) || (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)\n    struct sockaddr_in6 address;\n    bzero(&address, sizeof(address));\n    address.sin6_len = sizeof(address);\n    address.sin6_family = AF_INET6;\n#else\n    struct sockaddr_in address;\n    bzero(&address, sizeof(address));\n    address.sin_len = sizeof(address);\n    address.sin_family = AF_INET;\n#endif\n    return [self managerForAddress:&address];\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/comments/267541233","html_url":"https://github.com/AFNetworking/AFNetworking/issues/3498#issuecomment-267541233","issue_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/3498","id":267541233,"user":{"login":"xx-li","id":5794847,"avatar_url":"https://avatars.githubusercontent.com/u/5794847?v=3","gravatar_id":"","url":"https://api.github.com/users/xx-li","html_url":"https://github.com/xx-li","followers_url":"https://api.github.com/users/xx-li/followers","following_url":"https://api.github.com/users/xx-li/following{/other_user}","gists_url":"https://api.github.com/users/xx-li/gists{/gist_id}","starred_url":"https://api.github.com/users/xx-li/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xx-li/subscriptions","organizations_url":"https://api.github.com/users/xx-li/orgs","repos_url":"https://api.github.com/users/xx-li/repos","events_url":"https://api.github.com/users/xx-li/events{/privacy}","received_events_url":"https://api.github.com/users/xx-li/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T08:19:21Z","updated_at":"2016-12-16T08:19:21Z","body":"My app minimum supported version of the app is iOS9,  use AFNetworking by cocoapods, when run at any device, `__IPHONE_OS_VERSION_MIN_REQUIRED` value is `70000`，Causing  works with IPv4 all the time。 "}}
{"actor":{"display_login":"xx-li"}}