Garbage results still returns TA_FAIL

Hello,

I tested IsGenuine() with a Wifi hotspot and without login in (so Wifi is activated on my computer, but I don't have acces to internet), and it returned TA_FAIL.I tested it many times, still the same result. I tested with another Wifi hotspot, and it returned TA_E_INET : so it only occurs on some Wifi hotspot, but not all.

So I kept my workaround : running a separate thread where I ping "wyday.com", and only if successful I call IsGenuine(). This way, I avoid being deactivated when on the bad Wifi hotspot (that isn't acceptable for my kind of product).

Here is the Objective-C code (it have been in my product for months, and was very useful) :

#import <SystemConfiguration/SystemConfiguration.h>

bool success = false; const char *host_name = [@"wyday.com" cStringUsingEncoding:NSASCIIStringEncoding]; SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithName(NULL, host_name); SCNetworkReachabilityFlags flags; success = SCNetworkReachabilityGetFlags(reachability, &flags); bool isAvailable = success && (flags & kSCNetworkFlagsReachable) && !(flags & kSCNetworkFlagsConnectionRequired); if(isAvailable) { hr = IsGenuine("..."); if( hr == TA_OK || hr == TA_E_FEATURES_CHANGED ) { // IsGenuine OK } else if( hr == TA_E_INET ) { // Blocked } else { // FAIL } } else { // Not available }

It'd be helpful if you could give us a dump of the Wifi result that causes IsGenuine() to return TA_FAIL instead of TA_E_INET. You can use WireShark to get this response. This way we can fix whatever the problem is.

Hello Wyatt,

I restarted my computer, and the problem disappeared. FYI : if I connect to this hotspot, then enter any URL in the browser, it returns me a webpage to login in the hotspot.If got the 2 WireShark print if you want : one for the successful-case, the other for the should-fail-but-not-anymore-case.Anyway, so far so good.

I started another post, for a strange (but maybe expected) behavior.

Best. Philippe