Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
46cdd740
authored
Feb 27, 2013
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall: make Firewall class' name start with upper-case
parent
dd0841b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
firewall/fw.py
+1
-1
firewall/tasks.py
+2
-2
No files found.
firewall/fw.py
View file @
46cdd740
...
@@ -10,7 +10,7 @@ from datetime import datetime, timedelta
...
@@ -10,7 +10,7 @@ from datetime import datetime, timedelta
from
django.db.models
import
Q
from
django.db.models
import
Q
class
f
irewall
:
class
F
irewall
:
IPV6
=
False
IPV6
=
False
RULES
=
None
RULES
=
None
RULES_NAT
=
[]
RULES_NAT
=
[]
...
...
firewall/tasks.py
View file @
46cdd740
...
@@ -46,8 +46,8 @@ class ReloadTask(Task):
...
@@ -46,8 +46,8 @@ class ReloadTask(Task):
if
not
sleep
:
if
not
sleep
:
sleep
=
True
sleep
=
True
time
.
sleep
(
10
)
time
.
sleep
(
10
)
ipv4
=
f
irewall
()
.
get
()
ipv4
=
F
irewall
()
.
get
()
ipv6
=
f
irewall
(
True
)
.
get
()
ipv6
=
F
irewall
(
True
)
.
get
()
reload_firewall_task
.
delay
(
ipv4
,
ipv6
)
reload_firewall_task
.
delay
(
ipv4
,
ipv6
)
if
type
==
"Blacklist"
:
if
type
==
"Blacklist"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment