Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _codeql_detected_source_root
2 changes: 1 addition & 1 deletion src/shared/inc/lxinitshared.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ Module Name:
// Definitions used by WSLA
//

constexpr auto c_ephemeralPortRange = std::pair<uint16_t, uint16_t>(10000, 20000);
constexpr auto c_ephemeralPortRange = std::pair<uint16_t, uint16_t>(10000, 20001);

// The types of messages that can be sent to init and mini init.
//
Expand Down
2 changes: 1 addition & 1 deletion src/windows/wslaservice/exe/WSLAVirtualMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ constexpr auto MAX_CRASH_DUMPS = 10;
constexpr auto SAVED_STATE_FILE_EXTENSION = L".vmrs";
constexpr auto SAVED_STATE_FILE_PREFIX = L"saved-state-";
constexpr auto RECEIVE_TIMEOUT = 30 * 1000;
constexpr auto CONTAINER_PORT_RANGE = std::pair<uint16_t, uint16_t>(20001, 65535);
constexpr auto CONTAINER_PORT_RANGE = std::pair<uint16_t, uint16_t>(20002, 65535);

static_assert(c_ephemeralPortRange.second < CONTAINER_PORT_RANGE.first);

Expand Down
Loading