mirror of https://github.com/ehang-io/nps
fix multi account file
parent
2dc902fba1
commit
4b3834e46d
|
@ -241,6 +241,7 @@ func dealTunnel(s string) *file.Tunnel {
|
|||
t.StripPre = item[1]
|
||||
case "multi_account":
|
||||
t.MultiAccount = &file.MultiAccount{}
|
||||
if common.FileExists(item[1]){
|
||||
if b, err := common.ReadAllFromFile(item[1]); err != nil {
|
||||
panic(err)
|
||||
} else {
|
||||
|
@ -252,6 +253,7 @@ func dealTunnel(s string) *file.Tunnel {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return t
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue