From a5da8a4e15eadb9f499333e638b9a4a3dbd98179 Mon Sep 17 00:00:00 2001 From: Tamipes Date: Sat, 7 Mar 2026 13:58:38 +0100 Subject: [PATCH] doc: update README.md env variables to a better format --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2f80156..8a10d6f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ # Env variables: -- BIND_ADDR(default: 0.0.0.0:25565): the address the server should bind to -- FILTER_CONN(default: '(addr == "10.100.0.1")'): the filter appplied with [evalexpr](https://docs.rs/evalexpr/latest/evalexpr/) - The "context" has the addr variable populated with the address of part of the - handshake packet. Custom filter can be specified, and drop any - connections which match the filter. +```bash +# Address the server should bind to +# BIND_ADDR="0.0.0.0:25565" + +# Filter appplied with [evalexpr](https://docs.rs/evalexpr/latest/evalexpr/) +# The "context" has the addr variable populated with the address of part of the +# handshake packet. Custom filter can be specified, and drop any +# connections which match the filter. +# FILTER_CONN='(addr == "10.100.0.1")' +```