mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 00:24:40 +01:00
changed system requirements reading
This commit is contained in:
parent
8513c0dd7f
commit
f3a621e192
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
|
@ -48,7 +47,7 @@ func CheckSysRequirements() {
|
|||
var fileContent []byte
|
||||
var err error
|
||||
if Exists(confFile) {
|
||||
fileContent, err = os.ReadFile(confFile)
|
||||
fileContent, err = ioutil.ReadFile(confFile)
|
||||
} else {
|
||||
confFile = "/proc/config.gz"
|
||||
fileContent, err = ReadGzipFile(confFile)
|
||||
|
|
Loading…
Add table
Reference in a new issue