Skip to content
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

请求查看变量-e PRIVATEKEY=问题 #5

Open
alexallen1 opened this issue Apr 24, 2024 · 3 comments
Open

请求查看变量-e PRIVATEKEY=问题 #5

alexallen1 opened this issue Apr 24, 2024 · 3 comments

Comments

@alexallen1
Copy link

alexallen1 commented Apr 24, 2024

你好,发现输入PRIVATEKEY无法生成PUBLICKEY

1713986137696
使用的代码是
EXTERNAL_PORT=61157
docker run -d --name xray_reality --restart=always --network host -e PRIVATEKEY=NMGMse1YePYi_wNQA2zW9bBAaMdv1MfNv5nUx0Gruik -e HOSTMODE_PORT=$HOSTMODE_PORT wulabing/xray_docker_reality:latest

不懂就问啊,我手机平板节点有一个固定PUBLICKEY
半年前搭建过./xray,现在想无缝换到贵站一键docker

能不能-e PUBLICKEY变量 解决这问题,还是说固定PRIVATEKEY生成回去我之前的PUBLICKEY……

@wulabing
Copy link
Owner

公私钥是成对的,当输入私钥作为参数时,默认用户是有对应公钥的
服务端运行配置文件中只需要私钥,客户端连接节点需要公钥

@alexallen1
Copy link
Author

公私钥是成对的,当输入私钥作为参数时,默认用户是有对应公钥的 服务端运行配置文件中只需要私钥,客户端连接节点需要公钥

明白,不过我在xray server考私钥粘贴进去docker跑,用我客户端公钥连不上,不知道我问题还是bug

@wulabing
Copy link
Owner

可以贴一下启动后的运行日志,后面我回去排查一下

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

No branches or pull requests

2 participants