Available since: 1.9.3
添加一条允许连接的 ip 规则.
rule
- IP 地址过滤规则, 只前缀, 如 127.0.1
, 127.0
, 等等.Status reply.
ssdb 127.0.0.1:8888> list_allow_ip
key
-----------------
all
1 result(s) (0.000 sec)
(0.000 sec)
ssdb 127.0.0.1:8888> add_allow_ip 127.0.0.1
ok
(0.000 sec)
ssdb 127.0.0.1:8888> list_allow_ip
key
-----------------
127.0.0.1
1 result(s) (0.000 sec)
(0.000 sec)
ssdb 127.0.0.1:8888> del_allow_ip 1.1.1.1
ok
(0.000 sec)
ssdb 127.0.0.1:8888> list_allow_ip
key
-----------------
127.0.0.1
1 result(s) (0.000 sec)
(0.000 sec)
ssdb 127.0.0.1:8888> del_allow_ip 127.0.0.1
ok
(0.000 sec)
ssdb 127.0.0.1:8888> list_allow_ip
key
-----------------
0 result(s) (0.000 sec)
(0.000 sec)
ssdb 127.0.0.1:8888>