1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-19 10:56:06 -05:00
v2fly/common/platform/securedload/file.go
Kslr b8af713998
Fix: secured loading path under windows (#851)
* Fix: secured loading path under windows

* fix sign file foramts
2021-04-04 16:32:42 +08:00

14 lines
320 B
Go

package securedload
func GetAssetSecured(name string) ([]byte, error) {
var err error
for k, v := range knownProtectedLoader {
loadedData, errLoad := v.VerifyAndLoad(name)
if errLoad == nil {
return loadedData, nil
}
err = newError(k, " is not loading executable file").Base(errLoad)
}
return nil, err
}