-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(machine): throw error connection refused
after set proxy
#18936
Conversation
0ad5edf
to
ae67b40
Compare
connect: connection refused
after set proxy
connect: connection refused
after set proxyconnection refused
after set proxy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Please write a useful commit message explaining the issue and how the commit fixes it.
Hey @vrothberg. Do you mean to modify |
I mean the |
Hey @vrothberg. I have finished making the modifications. Thanks 😄. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BlackHole1, Luap99, vrothberg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a lot of duplication, which makes me queasy. And the test for 'contains("")is anti-useful. See suggestion inline for a possible way to handle
""(empty),
=` (no need to duplicate duplication), and a default case where you don't need to spell out variables duplicatedly.
Thank you for your initiative and your contribution!
When the `machine start` command is executed, Podman automatically retrieves the current host's `*_PROXY` environment variable and assigns it directly to the virtual machine in QEMU. However, most `*_PROXY` variables are set with `127.0.0.1` or `localhost`, such as `127.0.0.1:8888`. This causes failures in network-related operations within the virtual machine due to incorrect proxy settings. Fixes: containers#14087 Signed-off-by: Black-Hole1 <[email protected]>
Cleanup the todo in separate PR. |
When the
machine start
command is executed, Podman automatically retrieves the current host's*_PROXY
environment variable and assigns it directly to the virtual machine in QEMU. However, most*_PROXY
variables are set with127.0.0.1
orlocalhost
, such as127.0.0.1:8888
. This causes failures in network-related operations within the virtual machine due to incorrect proxy settings.Does this PR introduce a user-facing change?
/cc @Luap99