Skip to content

Commit d3a190a

Browse files
authored
Clarify README wrt ephemeral port in embedded mode (#1524)
If we don't set port=0, the default port 8899 is used. So I propose to clarify the documentation.
1 parent 3b9964b commit d3a190a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ In embedded mode, you can access this port. Example:
17251725
import proxy
17261726

17271727
if __name__ == '__main__':
1728-
with proxy.Proxy() as p:
1728+
with proxy.Proxy(port=0) as p:
17291729
print(p.flags.port)
17301730
proxy.sleep_loop()
17311731
```
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify documentation for using ephemeral ports in embedded mode.

0 commit comments

Comments
 (0)