mirror of
https://github.com/safing/portmaster
synced 2025-09-02 18:49:14 +00:00
Remove broken network key prefix check
This commit is contained in:
parent
845e3a2002
commit
90a87bae04
1 changed files with 0 additions and 4 deletions
|
@ -48,10 +48,6 @@ func makeKey(pid int, scope, id string) string {
|
||||||
func parseDBKey(key string) (pid int, scope, id string, ok bool) {
|
func parseDBKey(key string) (pid int, scope, id string, ok bool) {
|
||||||
// Split into segments.
|
// Split into segments.
|
||||||
segments := strings.Split(key, "/")
|
segments := strings.Split(key, "/")
|
||||||
// Check for valid prefix.
|
|
||||||
if segments[0] != "tree" {
|
|
||||||
return 0, "", "", false
|
|
||||||
}
|
|
||||||
|
|
||||||
// Keys have 2 or 4 segments.
|
// Keys have 2 or 4 segments.
|
||||||
switch len(segments) {
|
switch len(segments) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue