Skip to content

virtualnetwork: simplify DialContextTCP - #774

Open
cfergeau wants to merge 1 commit into
containers:mainfrom
cfergeau:propagate-src-ip
Open

cfergeau wants to merge 1 commit into
containers:mainfrom
cfergeau:propagate-src-ip

Conversation

@cfergeau

@cfergeau cfergeau commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

DialContextTCPFrom with a nil source address lets the stack pick the source address, which is what gonet.DialContextTCP() was doing, so DialContextTCP can now simply delegate to it instead of duplicating the dialing code.

Assisted-by: OpenCode/GLM 5.3

DialContextTCPFrom with a nil source address lets the stack pick the
source address, which is what gonet.DialContextTCP() was doing, so
DialContextTCP can now simply delegate to it instead of duplicating
the dialing code.

Assisted-by: OpenCode/GLM 5.3
Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
@openshift-ci

openshift-ci Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfergeau

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant