Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to restart the proxy (Windows)? #185

Closed
weibeld opened this issue Jul 5, 2023 · 7 comments
Closed

Is there a way to restart the proxy (Windows)? #185

weibeld opened this issue Jul 5, 2023 · 7 comments

Comments

@weibeld
Copy link

weibeld commented Jul 5, 2023

On Windows 10, assuming the proxy has been installed to run on startup with px.exe --install and the system has started up, is there a way to manually restart the proxy while it is already running?

@weibeld weibeld changed the title Is tere a way to restart the proxy (Windows)? Is there a way to restart the proxy (Windows)? Jul 5, 2023
@genotrance
Copy link
Owner

There isn’t a —restart option right now. You can use —quit and then start Px again. As long as it is the same Px binary (same location), it should stop and start with the same configuration.

@genotrance
Copy link
Owner

I’m just curious why you need to restart a running proxy? Wondering if you have changed settings and want them to take or some other reason? We could add a flag but would be good to know why first.

@weibeld
Copy link
Author

weibeld commented Jul 12, 2023

No, the use case was restarting the proxy when there is a network change like connecting or disconnecting from a VPN. Not sure if the proxy is designed to handle this.

@genotrance
Copy link
Owner

I don’t think there’s a real need for this - Px reloads proxy information that is discovered every 60 seconds using —proxyreload. The timeout is configurable as well if you need. I think it should handle such VPN changes.

Curious to hear if this does not meet your needs.

@weibeld
Copy link
Author

weibeld commented Jul 12, 2023

I use Px proxy to provide internet access to WSL2 through a company network. When I log in to Windows and after that establish a VPN connection, then the proxy information is updated, as you said, however, I don't have internet access from WSL2. In particular, I can't reach the network interface that Px proxy is listening on from WSL2.

It only works if the VPN connection is established before logging in to Windows, i.e. before Px proxy is started.

@genotrance
Copy link
Owner

I'm not sure I understand this - are you saying that if the VPN is connected before Px starts, everything works fine but Px does not handle the switch if the VPN is started afterwards?

Does this have something to do with #173?

@genotrance
Copy link
Owner

This is added in v0.9.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants