From e8646f433464a6351173b7bfd352ba3811c8473e Mon Sep 17 00:00:00 2001 From: ray-1337 <33544674+ray-1337@users.noreply.github.com> Date: Tue, 12 Apr 2022 00:01:11 +0200 Subject: [PATCH] mistyped docs + tweaks --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 13306d9..ba0cb88 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,15 @@ $ yarn add node-ufw ## Usage ```js const nodeUfw = require("node-ufw"); -await nodeUfw.allow.port("192.168.0.1"); // true + +await nodeUfw.allow.port(6379); +await nodeUfw.deny.port(25565, "udp"); + +await nodeUfw.allow.address("192.168.0.1"); +await nodeUfw.deny.address("192.168.0.1", 80); +await nodeUfw.allow.address("192.168.0.1", 6379, "udp"); + +await nodeUfw.enable(); ``` ## LICENSE