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

Not always listen on TCP #7617

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Not always listen on TCP #7617

merged 1 commit into from
Oct 11, 2024

Conversation

Nino-K
Copy link
Member

@Nino-K Nino-K commented Oct 10, 2024

This change provides the protocol when calling expose or unexposed API requests. This is vital to ensure we listen to the correct protocol instead of defaulting to TCP.

Fixes: #6821
Also, addresses: #7473 and #4873

@Nino-K Nino-K requested a review from mook-as October 10, 2024 17:31
mook-as
mook-as previously approved these changes Oct 10, 2024
@@ -88,6 +88,8 @@ func (a *APITracker) Add(containerID string, portMap nat.PortMap) error {
for portProto, portBindings := range portMap {
var tmpPortBinding []nat.PortBinding

log.Infof("PortProto: %+v, PortBindings: %+v\n", portProto, portBindings)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is Infof infrequent enough when everything is going right and the user keeps this running over a week?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, that should be Debugf

This change provides the protocol when calling expose or unexpose API requests.
This is vital to ensure we listen on the correct protocol instead of always defaulting to TCP.

Signed-off-by: Nino Kodabande <[email protected]>
@mook-as mook-as merged commit 735dcca into main Oct 11, 2024
27 checks passed
@mook-as mook-as deleted the allow-listening-udp branch October 11, 2024 17:16
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.

UDP port forwarding not working on Windows with network tunnel enabled
2 participants