Skip to content

Xray : Add cert env #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2025
Merged

Conversation

codewithtamim
Copy link
Contributor

So in this contribution I added cert env path setting option inside the InitEnv() function. now it looks like this

const (
	coreAsset = "xray.location.asset"
	coreCert  = "xray.location.cert"
)

func InitEnv(datDir string) {
	os.Setenv(coreAsset, datDir)
	os.Setenv(coreCert, datDir)
}

So in this contribution I added cert env path setting option inside the `InitEnv()` function.
now it looks like this

```go

const (
	coreAsset = "xray.location.asset"
	coreCert  = "xray.location.cert"
)

func InitEnv(datDir string) {
	os.Setenv(coreAsset, datDir)
	os.Setenv(coreCert, datDir)
}

```
@yiguodev
Copy link
Collaborator

yiguodev commented Jun 7, 2025

How about using assetDir and certDir? I think putting all different files in one dir is not good.

@codewithtamim
Copy link
Contributor Author

Well that's considered good but I see wrappers like AndroidLibXrayLite already doing like this way.

@yiguodev yiguodev merged commit 2aa5cc6 into XTLS:main Jun 7, 2025
@yiguodev
Copy link
Collaborator

yiguodev commented Jun 7, 2025

I see. Then so be it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants