Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
libloc
Commits
94dfab8c
Commit
94dfab8c
authored
4 years ago
by
Michael Tremer
Browse files
Options
Download
Email Patches
Plain Diff
location-importer: Skip everything with /0
Signed-off-by:
Michael Tremer
<
michael.tremer@ipfire.org
>
parent
d6d06375
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/python/location-importer.in
src/python/location-importer.in
+5
-0
No files found.
src/python/location-importer.in
View file @
94dfab8c
...
...
@@ -590,6 +590,11 @@ class CLI(object):
log
.
warning
(
"Invalid IP network: %s: %s"
%
(
network
,
e
))
continue
# Prevent that we overwrite all networks
if
network
.
prefixlen
==
0
:
log
.
warning
(
"Skipping %s: You cannot overwrite default"
%
network
)
continue
self
.
db
.
execute
(
"""
INSERT INTO network_overrides(
network,
...
...
This diff is collapsed.
Click to expand it.
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