Skip to content
Snippets Groups Projects
Commit 0983f5e6 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé
Browse files

sockets: allow port to be NULL when listening on IP address


If the port in the SocketAddress struct is NULL, it can allow
the kernel to automatically select a free port. This is useful
in particular in unit tests to avoid a race trying to find a
free port to run a test case on.

Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
parent 2a8e21c7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment