bug fix & netconn add

This commit is contained in:
Starainrt
2021-06-04 10:44:53 +08:00
parent fd5cf2c1f6
commit d981a03b14
18 changed files with 711 additions and 168 deletions
-5
View File
@@ -9,8 +9,6 @@ import (
"strconv"
"strings"
"sync"
"b612.me/staros"
)
type SysConf struct {
@@ -76,9 +74,6 @@ func NewLinuxConf(EqualFlag string) *SysConf {
}
func (syscfg *SysConf) ParseFromFile(filepath string) error {
if !staros.Exists(filepath) {
return errors.New(filepath + " 不存在")
}
data, err := ioutil.ReadFile(filepath)
if err != nil {
return err