Merge commit from fork

If `--addr-pool=1.2.3.4`, the runtime will return an error.
The value must be in the form of ADDRESS/MASK.
This commit is contained in:
liang.he
2025-07-27 14:38:56 +08:00
committed by GitHub
parent c080aa80d0
commit 121232a995
4 changed files with 13 additions and 3 deletions

View File

@ -58,7 +58,8 @@ enabled.
_iwasm_ accepts address ranges via an option, `--addr-pool`, to implement
the capability control. All IP address the WebAssembly application may need to `bind()` or `connect()`
should be announced first. Every IP address should be in CIDR notation.
should be announced first. Every IP address should be in CIDR notation. If not, _iwasm_ will return
an error.
```bash
$ iwasm --addr-pool=1.2.3.4/15,2.3.4.6/16 socket_example.wasm