v2ray 9 年之前
父節點
當前提交
6486891b18
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      proxy/vmess/inbound/config_json.go

+ 2 - 1
proxy/vmess/inbound/config_json.go

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