add_allow_ip rule

Available since: 1.9.3

Add one allow ip rule.

Warning: After you have modify any allow/deny rule, you must modify both the configuration file! Or the rules will be reload from configuration file after you restart ssdb-server.

Parameters

Return Value

Status reply.

Examples

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>