Fix: SocketException with GetNetworkTime on cell#15
Fix: SocketException with GetNetworkTime on cell#15nickfourtimes wants to merge 1 commit intoapple:mainfrom
Conversation
During testing, we found that running GetNetworkTime on an iPhone XR (iOS 16.5.1c), on cellular data, caused a SocketException in Time.GetNetworkTime. After thorough investigation with Unity support, it was determined that ineligible (IPv6) addresses were being returned via Dns.GetHostEntryAsync; the present change addresses this.
|
To provide more detail: I'd noticed the After a lot of debugging I found the problem, it turns out that over cellular data When converting the endpoint to string I got the following values:
In its documentation I can see The original code takes the object 0 from the IP results array from [Listing from |
Bug fixes for the GameKit plug-in.
During testing, we found that running
Time.GetNetworkTimeon an iPhone XR (iOS 16.5.1c), on cellular data, caused aSocketException. After thorough investigation with Unity support, it was determined that ineligible (IPv6) addresses were being returned viaDns.GetHostEntryAsync; the present change addresses this.