From 8626223628278412a0bfef8ce74fa2b9659af7ba Mon Sep 17 00:00:00 2001 From: "Sijie.Sun" Date: Tue, 4 Feb 2025 19:33:09 +0800 Subject: [PATCH] Update p2p-optimize.md (#89) --- en/guide/network/p2p-optimize.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/guide/network/p2p-optimize.md b/en/guide/network/p2p-optimize.md index 4e54a29..ed463d2 100644 --- a/en/guide/network/p2p-optimize.md +++ b/en/guide/network/p2p-optimize.md @@ -15,10 +15,10 @@ easytier-core -l 'tcp://[::]:12345' -l 'udp://[::]:12345' ## Specify Public IP and Port -In some cases, the node has a public IP and port, but EasyTier cannot correctly identify them (e.g., NAT host). You can use the `--mapped_listeners` option to configure the public IP and port. For example: +In some cases, the node has a public IP and port, but EasyTier cannot correctly identify them (e.g., NAT host). You can use the `--mapped-listeners` option to configure the public IP and port. For example: ```sh -easytier-core --mapped_listeners tcp://8.8.8.8:12345 -l tcp://0.0.0.0:11010 +easytier-core --mapped-listeners tcp://8.8.8.8:12345 -l tcp://0.0.0.0:11010 ``` This EasyTier instance listens on the local 11010 TCP port, and this port is mapped to the public 12345 port. Other nodes will try to connect to the public 12345 port.