bug fix & netconn add
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user