We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
服务器端配置:
{ "inbounds": [ { "port": 443, "protocol": "vmess", "settings": { "clients": [ { "id": "****", "alterId": 64 } ] }, "streamSettings": { "network": "h2", "httpSettings": { "path": "/ray" }, "security": "tls", "tlsSettings": { "certificates": [ { "certificateFile": "C:\\****", "keyFile": "C:\\****" } ] } } } ], "outbounds": [{ "protocol": "freedom", "settings": {} },{ "protocol": "blackhole", "settings": {}, "tag": "blocked" }], "routing": { "rules": [ { "type": "field", "ip": ["geoip:private"], "outboundTag": "blocked" } ] } }
服务器log配置debug后看到绑定的错误消息。
/var/log/v2ray/error.log
服务器端错误日志: 配置log level debug后,看到错误消息的log等级为info
V2Ray 4.33.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.15.5 windows/amd64) A unified platform for anti-censorship. 2021/01/02 22:12:07 Using default config: C:\tmp\v2ray\config.json 2021/01/02 22:12:07 [Info] v2ray.com/core/main/jsonem: Reading config: C:\tmp\v2ray\config.json 2021/01/02 22:12:07 [Debug] v2ray.com/core/app/log: Logger started 2021/01/02 22:12:07 [Debug] v2ray.com/core/app/proxyman/inbound: creating stream worker on 0.0.0.0:443 2021/01/02 22:12:07 [Warning] v2ray.com/core: V2Ray 4.33.0 started 2021/01/02 22:12:07 [Info] v2ray.com/core/transport/internet/http: failed to listen on 0.0.0.0:443 > listen tcp 0.0.0.0:443: bind: An attempt was made to access a socket in a way forbidden by its access permissions.``` 重新设置了本地log文件,stdout与stderr被转入文件,在文件中仍然是info消息。
The text was updated successfully, but these errors were encountered:
Fix: http2: listen port failed use error level log
d04a786
ref #576
No branches or pull requests
4.33.0
只启动服务程序
最小化配置,
默认stdout中没有任何错误,检查后发现配置中端口冲突,但提示消息为info被默认log等级为警告忽略,程序无法工作也没有报错
服务监听端口冲突用warning或者以上等级默认友好展示出来。
服务器端配置:
服务器log配置debug后看到绑定的错误消息。
/var/log/v2ray/error.log
文件中。服务器端错误日志:
配置log level debug后,看到错误消息的log等级为info
The text was updated successfully, but these errors were encountered: