From d56745bc86fd0134bce7ac770a2e22c719de52ef Mon Sep 17 00:00:00 2001 From: patterniha <71074308+patterniha@users.noreply.github.com> Date: Wed, 26 Mar 2025 15:34:16 +0330 Subject: [PATCH] set xray.location.cert to asset path (#131) --- libv2ray_main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libv2ray_main.go b/libv2ray_main.go index a04eaba..7f0ed72 100644 --- a/libv2ray_main.go +++ b/libv2ray_main.go @@ -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)