Skip to content

Commit

Permalink
More server doc fixes. (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch authored Jan 2, 2025
1 parent 1156fd8 commit 2972d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.toit
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ main:
network := net.open
// Listen on a free port.
tcp-socket := network.tcp-listen 0
print "Server on http://localhost:$tcp-socket.local-address.port/"
print "Server on http://$network.address:$tcp-socket.local-address.port/"
server := http.Server --max-tasks=5
server.listen tcp-socket:: | request/http.RequestIncoming writer/http.ResponseWriter |
resource := request.query.resource
Expand Down

0 comments on commit 2972d95

Please sign in to comment.