Update port-forward.md (#322)
Deploy VitePress site to Pages / build (push) Canceled after 0s
Deploy VitePress site to Pages / Deploy (push) Canceled after 0s

Fix port_forward parameters at documentation for port forwarding usage
This commit is contained in:
Eugene
2026-09-30 11:48:06 +08:00
committed by GitHub
parent 86774775b6
commit 2e89d73197
+3 -3
View File
@@ -83,15 +83,15 @@ sudo easytier-core \
## Configuring via Configuration File
In addition to command-line parameters, port forward rules can be written into the configuration file, corresponding to the `port_forwards` field. Each rule has three fields: `bind_addr`, `dst_addr`, and `proto`:
In addition to command-line parameters, port forward rules can be written into the configuration file, corresponding to the `port_forward` field. Each rule has three fields: `bind_addr`, `dst_addr`, and `proto`:
```toml
[[port_forwards]]
[[port_forward]]
proto = "tcp"
bind_addr = "127.0.0.1:5202"
dst_addr = "10.144.0.20:5201"
[[port_forwards]]
[[port_forward]]
proto = "udp"
bind_addr = "127.0.0.1:5202"
dst_addr = "10.144.0.20:5201"