Closed kakins closed 1 year ago
Yes, on Unity it seems to be unsuppoprted... I'll add a check for that.
The Registry.CurrentUser is null, right? Could you please check it?
Well, I assuming it is null when code path reaches openInternetSettingsKey
. However, when I check Registry.CurrentUser
before starting the proxy server, it is not null. There's no way for me to check the state of Registry.CurrentUser
once the execution reaches openInternetSettingsKey
, I can't debug into that method.
I added a null check. Please try the latest beta packade... Do you still receive the nullreference exception in TPW openInternetSSettingsKey?
That seemed to do it. The proxy starts and says it's listening, however none of the handlers are hit. For instance, just using the default setup from the readme, and navigating to something like google.com, no traffic seems to be intercepted. That may be a separate issue, though.
From where do you send the requests? Are you sure that you corretly set the proxy URL in your browser (if it is a browser)?
I was sending the requests just from a regular web browser. I didn't know there was a specific proxy URL I needed to use.
You should set the proxy address in your browser. Is everything ok after you set the proxy?
Closing this guy because I'm no longer working with this
Trying to use this in a Unity3d project. I'm not sure if this has something to do with the Unity itself, perhaps because it is running Mono? I get the following error when using some of the example code:
It appears the null reference is in the body of
openInternetSettingsKey
.However, when I try to run the same code in my Immediate Window in Visual Studio while debugging, I do not get a null reference: