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

wgcf-profile.conf配置中没有reserved值 #483

Open
LutongZhu opened this issue Mar 27, 2025 · 0 comments
Open

wgcf-profile.conf配置中没有reserved值 #483

LutongZhu opened this issue Mar 27, 2025 · 0 comments

Comments

@LutongZhu
Copy link

LutongZhu commented Mar 27, 2025

我使用wgcf_2.2.25_linux_amd64成功注册了wgcf-profile.conf

[Interface]
PrivateKey = 4JDZE/Uyuc+BbodOX49RZ0khH68/RVoRI7UKP5hiY28=
Address = 172.16.0.2/32
Address = 2606:4700:110:88cb:887d:100a:9db:58d7/128
DNS = 1.1.1.1, 1.0.0.1, 2606:4700:4700::1111, 2606:4700:4700::1001
MTU = 1280
[Peer]
PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/0
Endpoint = engage.cloudflareclient.com:2408

我现在需要client_id数值,该参数仅被 Cloudflare 用于负载均衡
"config":{"client_id": "qBoV"
import base64

client_id = "qBoV"
decoded = base64.b64decode(client_id)
result = list(decoded)

print(f"原始client_id: {client_id}")
print(f"解码后的字节: {decoded}")
print(f"十进制数组: {result}")
print(f"十六进制: {hex(int.from_bytes(decoded, 'big'))}")
但是现在要使用WARP的WireGuard配置需要"reserved": [168, 26, 21]

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

1 participant