Skip to content

Commit

Permalink
Clarify README wrt ephemeral port in embedded mode (#1524)
Browse files Browse the repository at this point in the history
If we don't set port=0, the default port 8899 is used. So I propose to clarify the documentation.
  • Loading branch information
sbidoul authored Feb 25, 2025
1 parent 3b9964b commit d3a190a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1725,7 +1725,7 @@ In embedded mode, you can access this port. Example:
import proxy

if __name__ == '__main__':
with proxy.Proxy() as p:
with proxy.Proxy(port=0) as p:
print(p.flags.port)
proxy.sleep_loop()
```
Expand Down
1 change: 1 addition & 0 deletions docs/changelog-fragments.d/1524.doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify documentation for using ephemeral ports in embedded mode.

0 comments on commit d3a190a

Please sign in to comment.