Skip to content

Conversation

@rg0now
Copy link
Contributor

@rg0now rg0now commented Feb 4, 2026

Description

So far calling VNet.ListenPacket("udp4", ":1234") with the shorthand empty address has failed by "host not found" in VNet.ResolveIPAddr.

This PR makes sure the empty address resolves to INADDR_ANY.

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.68%. Comparing base (70835a8) to head (fe58310).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #377   +/-   ##
=======================================
  Coverage   84.67%   84.68%           
=======================================
  Files          38       38           
  Lines        3074     3076    +2     
=======================================
+ Hits         2603     2605    +2     
  Misses        339      339           
  Partials      132      132           
Flag Coverage Δ
go 84.68% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@JoTurk JoTurk left a comment

Choose a reason for hiding this comment

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

thank you.

var err error

if address == "" {
address = "0.0.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

I think it will be cleaner if we use net.IPv4zero also we should prob handle ipv6.

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