Skip to content

Commit a68f2da

Browse files
authored
Updating code comments
1 parent 499699c commit a68f2da

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

specs/WebRtcPortConfiguration.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
WebRTC Port Range Configuration
2+
Port Range Configuration
33
===
44

55
# Background
@@ -95,7 +95,13 @@ interface ICoreWebView2StagingEnvironmentOptions10 : IUnknown {
9595
/// Sets the allowed port range for the specified network protocol.
9696
/// This allows WebView2 to work within enterprise firewall constraints
9797
/// by restricting network communication to the specified port range.
98-
/// Currently WebRTC UDP port restriction is supported.
98+
/// Currently only WebRTC UDP port restriction is supported.
99+
/// minPort and maxPort must be in the range 1025-65535 (inclusive).
100+
/// Calls with invalid ranges fail with E_INVALIDARG.
101+
/// minPort must be less than or equal to maxPort.
102+
/// If minPort equals maxPort, it represents a single port.
103+
/// If (0,0) is passed as (minPort, maxPort), API will treat this as default
104+
/// value and no restrictions on ports will be applied.
99105
///
100106
/// `protocol` The network protocol (TCP or UDP) for which to set the port range.
101107
/// `minPort` The minimum port number in the allowed range (inclusive).
@@ -109,8 +115,8 @@ interface ICoreWebView2StagingEnvironmentOptions10 : IUnknown {
109115
110116
/// Gets the allowed port range for the specified network protocol.
111117
/// Returns the current port range configuration that was set via
112-
/// SetAllowedPortRange. Default value is 0,0, which means no restrictions applied
113-
/// and ports are allocated randomly between system's ephemeral range.
118+
/// SetAllowedPortRange. Default value is (0,0) which means no restrictions applied
119+
/// and ports are allocated randomly between system's ephemeral range 1025-65535 (inclusive).
114120
///
115121
/// `protocol` The network protocol (TCP or UDP) for which to get the port range.
116122
/// `minPort` Receives the minimum port number in the allowed range.

0 commit comments

Comments
 (0)