37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
$OpenBSD: patch-firewall_py,v 1.2 2011/07/29 16:56:32 ajacoutot Exp $
|
|
|
|
Disable firewall checks.
|
|
|
|
--- firewall.py.orig Thu Jul 28 18:04:13 2011
|
|
+++ firewall.py Fri Jul 29 18:49:26 2011
|
|
@@ -88,26 +88,13 @@ class Firewall:
|
|
self._client_error_handler (exc)
|
|
|
|
def write (self):
|
|
- try:
|
|
- self._firewall.write (json.dumps (self._fw_data[0]))
|
|
- except:
|
|
- pass
|
|
+ pass
|
|
|
|
def _check_any_allowed (self, search):
|
|
- (args, filename) = self._get_fw_data ()
|
|
- if filename == None: return True
|
|
- isect = set (search).intersection (set (args))
|
|
- return len (isect) != 0
|
|
+ return True
|
|
|
|
def add_rule (self, rule):
|
|
- try:
|
|
- (args, filename) = self._fw_data
|
|
- except AttributeError:
|
|
- (args, filename) = self._get_fw_data ()
|
|
- if filename == None: return
|
|
-
|
|
- args.append (rule)
|
|
- self._fw_data = (args, filename)
|
|
+ pass
|
|
|
|
def check_ipp_client_allowed (self):
|
|
return self._check_any_allowed (set(["--port=631:udp",
|