-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
panic: V is not in context. #698
Comments
I wasn't see this issue. What's your json config? |
{
"log": {
"loglevel": "debug"
},
"inbounds": [ // unused inbound
{
"listen": "127.0.0.1",
"port": 1080,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true
},
"sniffing": {
"destOverride": [
"http",
"tls"
],
"enabled": true
}
}
],
"outbounds": [
{
"protocol": "shadowsocks",
"settings": {
"servers": [
...
]
},
"streamSettings": {
"network": "tcp",
"security": "none"
},
"tag": "proxy"
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": []
},
"stats": {}
} |
@rurirei I tried config similar to yours but can not reproduce the issue. It is quite weird. Do you also have this issue if you turn fake dns on?
|
@yuhan6665 errors met as well. |
especially do not met this if disabled vsniffing := &vproxyman.SniffingConfig{
Enabled: false,
DestinationOverride: []string{"http", "tls", "fakedns"},
MetadataOnly: false,
} |
@rurirei based on your error log, the context has some issue when init sniffer. That's why if you turn off sniffer it will be ok.
|
@yuhan6665 that's it. i'll try v.RequireFeatures() to do not uses ctx. v2ray-core/app/dispatcher/fakednssniffer.go Lines 16 to 20 in 38da831
|
seems gently fixed by. Line 19 in 38da831
|
seems ok. [v2ray] [Debug] v2ray.com/core/app/dns: domain github.com will use DNS in order: [FakeDNS]
[v2ray] [Info] [3492521930] v2ray.com/core/app/dispatcher: fake dns got domain: github.com for ip: 198.18.0.2
[v2ray] [Info] [3492521930] v2ray.com/core/app/dispatcher: sniffed domain: github.com
[v2ray] [Info] [3492521930] v2ray.com/core/app/dispatcher: taking detour [proxy] for [tcp:github.com:443] |
Add to config "sniffing": { |
i uses v2ray-core (commit top to #406 merged) as a Android library (code as below) and met errors as below, but do not met this if uses tree before FakeDns added. especially
fakednssniffer.go
appears at logs, maybe that is introduced by FakeDns commits? sorry for my not read codes of FakeDns.v2ray-core/context.go
Lines 14 to 29 in efb9632
The text was updated successfully, but these errors were encountered: