Skip to content

Commit 6d45f45

Browse files
anecdatadhalbert
authored andcommitted
web workflow: uses an mdns port service slot
1 parent 98bd9e5 commit 6d45f45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/workflows.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ MDNS is used to resolve [`circuitpython.local`](http://circuitpython.local) to a
9494
hostname of the form `cpy-XXXXXX.local`. The `XXXXXX` is based on network MAC address. The device
9595
also provides the MDNS service with service type `_circuitpython` and protocol `_tcp`.
9696

97+
Since port 80 (or the port assigned to `CIRCUITPY_WEB_API_PORT`) is used for MDNS, the `mdns`
98+
[module](https://docs.circuitpython.org/en/latest/shared-bindings/mdns/index.html#mdns.Server.advertise_service)
99+
can't also advertise a service on that port.
100+
97101
### HTTP
98102
The web server is HTTP 1.1 and may use chunked responses so that it doesn't need to precompute
99103
content length.

0 commit comments

Comments
 (0)