mirror of
https://github.com/2dust/AndroidLibXrayLite.git
synced 2025-06-28 14:19:51 +00:00
set xray.location.cert to asset path (#131)
This commit is contained in:
parent
4ec3c7e177
commit
d56745bc86
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@ import (
|
|||
|
||||
const (
|
||||
v2Asset = "xray.location.asset"
|
||||
v2Cert = "xray.location.cert"
|
||||
xudpBaseKey = "xray.xudp.basekey"
|
||||
)
|
||||
|
||||
|
@ -188,6 +189,7 @@ func InitV2Env(envPath string, key string) {
|
|||
//We need to set location outside V2Ray
|
||||
if len(envPath) > 0 {
|
||||
os.Setenv(v2Asset, envPath)
|
||||
os.Setenv(v2Cert, envPath)
|
||||
}
|
||||
if len(key) > 0 {
|
||||
os.Setenv(xudpBaseKey, key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue