We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 954d1a0 commit 31e28b4Copy full SHA for 31e28b4
1 file changed
src/windows/WslcSDK/wslcsdk.cpp
@@ -593,6 +593,12 @@ try
593
bindingAddressStrings[i] = addrBuf;
594
convertedPort.BindingAddress = bindingAddressStrings[i].c_str();
595
}
596
+ else
597
+ {
598
+ // If no binding address is provided, default to wildcard.
599
+ convertedPort.Family = AF_UNSPEC;
600
+ convertedPort.BindingAddress = nullptr;
601
+ }
602
603
containerOptions.Ports = convertedPorts.get();
604
containerOptions.PortsCount = static_cast<ULONG>(internalContainerSettings->portsCount);
0 commit comments