You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.4 KiB
31 lines
1.4 KiB
diff -up fail2ban-0.8.1/server/ssocket.py.sock fail2ban-0.8.1/server/ssocket.py
|
|
--- fail2ban-0.8.1/server/ssocket.py.sock 2008-01-31 22:44:43.000000000 +0000
|
|
+++ fail2ban-0.8.1/server/ssocket.py 2008-01-31 22:45:31.000000000 +0000
|
|
@@ -41,11 +41,11 @@ class SSocket(Thread):
|
|
Thread.__init__(self)
|
|
self.__transmit = transmitter
|
|
self.__isRunning = False
|
|
- self.__socket = "/tmp/fail2ban.sock"
|
|
+ self.__socket = "/var/run/fail2ban.sock"
|
|
self.__ssock = None
|
|
logSys.debug("Created SSocket")
|
|
|
|
- def initialize(self, sock = "/tmp/fail2ban.sock", force = False):
|
|
+ def initialize(self, sock = "/var/run/fail2ban.sock", force = False):
|
|
self.__socket = sock
|
|
# Remove socket
|
|
if os.path.exists(sock):
|
|
diff -up fail2ban-0.8.1/config/fail2ban.conf.sock fail2ban-0.8.1/config/fail2ban.conf
|
|
--- fail2ban-0.8.1/config/fail2ban.conf.sock 2008-01-31 22:46:01.000000000 +0000
|
|
+++ fail2ban-0.8.1/config/fail2ban.conf 2008-01-31 22:46:23.000000000 +0000
|
|
@@ -28,7 +28,7 @@ logtarget = /var/log/fail2ban.log
|
|
# Notes.: Set the socket file. This is used to communicate with the daemon. Do
|
|
# not remove this file when Fail2ban runs. It will not be possible to
|
|
# communicate with the server afterwards.
|
|
-# Values: FILE Default: /tmp/fail2ban.sock
|
|
+# Values: FILE Default: /var/run/fail2ban.sock
|
|
#
|
|
-socket = /tmp/fail2ban.sock
|
|
+socket = /var/run/fail2ban.sock
|
|
|