|
|
@ -441,17 +441,16 @@ class Transmitter(TransmitterBase):
|
|
|
|
self.assertEqual(
|
|
|
|
self.assertEqual(
|
|
|
|
self.transm.proceed(["set", self.jailName, "addignoreip", value]),
|
|
|
|
self.transm.proceed(["set", self.jailName, "addignoreip", value]),
|
|
|
|
(0, [value]))
|
|
|
|
(0, [value]))
|
|
|
|
# Will allow duplicate
|
|
|
|
# Duplicates ignored
|
|
|
|
#NOTE: Should duplicates be allowed, or silent ignore like logpath?
|
|
|
|
|
|
|
|
self.assertEqual(
|
|
|
|
self.assertEqual(
|
|
|
|
self.transm.proceed(["set", self.jailName, "addignoreip", value]),
|
|
|
|
self.transm.proceed(["set", self.jailName, "addignoreip", value]),
|
|
|
|
(0, [value, value]))
|
|
|
|
(0, [value]))
|
|
|
|
self.assertEqual(
|
|
|
|
self.assertEqual(
|
|
|
|
self.transm.proceed(["get", self.jailName, "ignoreip"]),
|
|
|
|
self.transm.proceed(["get", self.jailName, "ignoreip"]),
|
|
|
|
(0, [value, value]))
|
|
|
|
(0, [value]))
|
|
|
|
self.assertEqual(
|
|
|
|
self.assertEqual(
|
|
|
|
self.transm.proceed(["set", self.jailName, "delignoreip", value]),
|
|
|
|
self.transm.proceed(["set", self.jailName, "delignoreip", value]),
|
|
|
|
(0, [value]))
|
|
|
|
(0, []))
|
|
|
|
|
|
|
|
|
|
|
|
self.assertEqual(
|
|
|
|
self.assertEqual(
|
|
|
|
self.transm.proceed(["get", self.jailName, "ignoreself"]),
|
|
|
|
self.transm.proceed(["get", self.jailName, "ignoreself"]),
|
|
|
|