Skip to content

Commit

Permalink
add note about binding to interfaces in README
Browse files Browse the repository at this point in the history
  • Loading branch information
rawhat committed Dec 8, 2024
1 parent 55089bc commit d6582e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ pub fn main() {
let assert Ok(_) = glisten.send(conn, bytes_builder.from_bit_array(msg))
actor.continue(state)
})
// NOTE: By default, `glisten` will listen on the loopback interface. If
// you want to listen on all interfaces, pass the following. You can also
// specify other interface values, including IPv6 addresses.
// |> glisten.bind("0.0.0.0")
|> glisten.serve(3000)
process.sleep_forever()
Expand Down

0 comments on commit d6582e6

Please sign in to comment.