doc: update README.md env variables to a better format
This commit is contained in:
parent
8a9ae9f735
commit
a5da8a4e15
1 changed files with 10 additions and 5 deletions
15
README.md
15
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")'
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue