Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
nexdpi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
sysadmin
nexdpi
Commits
f98ef4ce
Commit
f98ef4ce
authored
Apr 24, 2021
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Little fixes
parent
8681bde0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
dpi
dpi
+23
-1
No files found.
dpi
View file @
f98ef4ce
...
@@ -4,7 +4,7 @@ from setproctitle import setproctitle
...
@@ -4,7 +4,7 @@ from setproctitle import setproctitle
from
shell_cmd
import
sh
from
shell_cmd
import
sh
from
nfstream
import
NFStreamer
from
nfstream
import
NFStreamer
import
time
import
time
import
sys
import
sys
,
signal
import
json
import
json
deftimeout
=
"3600"
deftimeout
=
"3600"
...
@@ -67,6 +67,28 @@ except:
...
@@ -67,6 +67,28 @@ except:
Cats
=
R
[
'Cats'
]
Cats
=
R
[
'Cats'
]
Apps
=
R
[
'Apps'
]
Apps
=
R
[
'Apps'
]
def
reloadconf
(
signum
,
frame
):
global
Cats
global
Apps
try
:
fconf
=
open
(
"/etc/nexdpi/dpirules.json"
,
"r"
)
R
=
json
.
loads
(
fconf
.
read
())
fconf
.
close
()
Cats
=
R
[
'Cats'
]
Apps
=
R
[
'Apps'
]
print
(
"Rules file reloaded"
)
except
:
print
(
"Error loading rules file."
)
signal
.
signal
(
signal
.
SIGHUP
,
reloadconf
)
Cats
=
R
[
'Cats'
]
Apps
=
R
[
'Apps'
]
UnknownMatch
=
[]
UnknownMatch
=
[]
class
NexDPI
():
class
NexDPI
():
...
...
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