mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-02 17:54:30 -04:00
14 lines
331 B
Go
14 lines
331 B
Go
package securedload
|
|
|
|
func GetAssetSecured(name string) ([]byte, error) {
|
|
var err error
|
|
for k, v := range knownProtectedLoader {
|
|
if loadedData, errLoad := v.VerifyAndLoad(name); errLoad == nil {
|
|
return loadedData, nil
|
|
} else {
|
|
err = newError(k, " is not loading executable file").Base(errLoad)
|
|
}
|
|
}
|
|
return nil, err
|
|
}
|