-
Notifications
You must be signed in to change notification settings - Fork 2
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
Enhance the flexibility of the proxy configuration #8
Open
weiiwang01
wants to merge
20
commits into
main
Choose a base branch
from
feat-proxy-config
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit b25da766910df0259ef692c3874fa94a1d705a6a Author: Weii Wang <weii.wang@canonical.com> Date: Mon Dec 4 19:06:16 2023 +0800 Enhance the flexibility of the proxy configuration commit 73529f776ee3e5ebe1790961980600b66abc5ba5 Merge: 476c1c8 c31edfd Author: Weii Wang <weii.wang@canonical.com> Date: Thu Nov 30 22:12:31 2023 +0800 Merge branch 'main' into feat-stable commit 476c1c8bd72fed14ed7e9d34fe5887f623fdaf9c Author: Weii Wang <weii.wang@canonical.com> Date: Thu Nov 30 13:36:06 2023 +0800 temp
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Revise the existing
proxy
configuration by splitting it into two separate configurations:http-proxy
andhttps-proxy
. These configurations align more closely with standard conventions. Ifhttp-proxy
orhttps-proxy
is not set, respective HTTP and HTTPS connections will be directly passed through to the original destination, without proxy.To address issues of infinite connections that may arise from this direct passthrough, introducing an additional option,
fwmark
. This feature tags all traffic sent by aproxy with a fwmark, assisting the firewall in differentiating between traffic received and sent by aproxy.The aproxy
snap
has been updated to reflect these changes but still maintains compatibility with previous versions of the snap.