Re-work config code
Add raw description as a possible config for a port, and update the documentation appropriately.
This commit is contained in:
parent
74e2da2f29
commit
7a40326719
2 changed files with 348 additions and 73 deletions
|
|
@ -109,14 +109,15 @@ If **FILE** is **-**, this reads text from stdin instead.
|
|||
The following is an example of a *config.toml* file:
|
||||
|
||||
```
|
||||
auto=true # should `fwd` should enable identified ports
|
||||
auto=true # should `fwd` should enable identified ports (default true)
|
||||
|
||||
[servers.foo] # Server-specific settings for foo
|
||||
auto=true
|
||||
ports=[1080, 1082] # ports that are always present
|
||||
[servers.foo] # Server-specific settings for foo
|
||||
auto=true # defaults to the global setting
|
||||
ports=[1080, 1082] # ports that are always present
|
||||
|
||||
[servers.bar.ports] # `ports` can also be a table with port numbers as keys
|
||||
1080=true # the values can be booleans (for enabled)
|
||||
[servers.bar.ports] # `ports` can also be a table with port numbers as keys
|
||||
1080=true # the values can be booleans (for enabled)...
|
||||
1081="My program" # or strings (for descriptions).
|
||||
|
||||
[servers.bar.ports.1082] # port values can also be tables
|
||||
enabled=true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue