mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-19 10:56:06 -05:00
b8af713998
* Fix: secured loading path under windows * fix sign file foramts
14 lines
320 B
Go
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
|
|
}
|