From 0021906358e50c9f53d2fa98ba853a16f6388078 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 10 Jan 2012 19:26:05 -0500 Subject: [PATCH] RF: for consistency use_dns -> usedns I guess it was might fault of inconsistency suggesting that name. Other options/commands do not have _ in the names, so let it be consistent with the rest for now --- client/jailreader.py | 6 +++--- common/protocol.py | 4 ++-- config/jail.conf | 4 ++-- server/filter.py | 8 ++++---- server/transmitter.py | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/client/jailreader.py b/client/jailreader.py index ccda4739..f66dc010 100644 --- a/client/jailreader.py +++ b/client/jailreader.py @@ -65,7 +65,7 @@ class JailReader(ConfigReader): ["int", "maxretry", 3], ["int", "findtime", 600], ["int", "bantime", 600], - ["string", "use_dns", "warn"], + ["string", "usedns", "warn"], ["string", "failregex", None], ["string", "ignoreregex", None], ["string", "ignoreip", None], @@ -123,8 +123,8 @@ class JailReader(ConfigReader): stream.append(["set", self.__name, "findtime", self.__opts[opt]]) elif opt == "bantime": stream.append(["set", self.__name, "bantime", self.__opts[opt]]) - elif opt == "use_dns": - stream.append(["set", self.__name, "use_dns", self.__opts[opt]]) + elif opt == "usedns": + stream.append(["set", self.__name, "usedns", self.__opts[opt]]) elif opt == "failregex": stream.append(["set", self.__name, "addfailregex", self.__opts[opt]]) elif opt == "ignoreregex": diff --git a/common/protocol.py b/common/protocol.py index 8361ee08..db2b07eb 100644 --- a/common/protocol.py +++ b/common/protocol.py @@ -62,7 +62,7 @@ protocol = [ ["set delignoreregex ", "removes the regular expression at for ignoreregex"], ["set findtime