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

Fixed Issue #3875 that ProxySetting doesn't support PPPoE connection. Remove unnecessary sysproxy.exe. #4444

Merged
merged 2 commits into from
Nov 26, 2023

Conversation

flyoutsea
Copy link

@flyoutsea flyoutsea commented Nov 25, 2023

Fixed Issue #3875 that ProxySetting doesn't support PPPoE connection.
Remove sysproxy.exe, which was a workaround to PPPoE problem.

Also fixed memory leaks of StringToHGlobalAuto in SetProxy.
Fixed a couple of warnings.

The code calls RAS API to find out all dial up connections, and change proxy setting for every connection, including LAN.
It also notifies system that proxy setting was changed.

It will throw exceptions with win32 error code when an error occurs. The caller handled the exception and output in logs.

Tested with both LAN and PPPoE connection. I installed a PPPoE server on my openwrt router to validate the change.

ps. please don't embed exe file in the resource, which causes some anti-virus software false alarms.

@2dust 2dust merged commit ed25ac1 into 2dust:master Nov 26, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants