NSURLConnection method use with IPv6

▼魔方 西西 提交于 2019-12-13 07:10:43

问题


I have code my project using SOAP methods in NSURLConnection.Recently new version update reject it cause of ipV6 issue for ios9+

Now i check that for supporting ipV6 you need to convert code to standard networking APIs like NSURLSession and CFNetwork APIs provided by apple.

Is there alternative without converting my more then 350+ api , it will work with ipV6 .


回答1:


Now that NSURLConnection has been deprecated it's just a question of time before your code stop working with new iOS updates. So whatever, you'd better plan using newer APIs, sooner or later.

NSURLConnection should still work with IPv6 tho. Are you sure it's not because you have been using an IP literal instead of domain name ? Ex: using IP like 123.123.23.3 is forbidden.

Also; please take a look at the transition guide.

It should hint what triggered apple rejection



来源:https://stackoverflow.com/questions/38138808/nsurlconnection-method-use-with-ipv6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!