1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 14:56:33 -04:00

Assign detour config

This commit is contained in:
v2ray 2016-06-01 22:33:45 +02:00
parent 43f6998d31
commit 957eaf38db

View File

@ -70,6 +70,7 @@ func (this *Config) UnmarshalJSON(data []byte) error {
AlterIDs: 32,
}
}
this.DetourConfig = jsonConfig.DetourConfig
// Backward compatibility
if this.Features != nil && this.DetourConfig == nil {
this.DetourConfig = this.Features.Detour