Quellcode durchsuchen

Fix zero users bug

V2Ray vor 10 Jahren
Ursprung
Commit
a81327c5b9
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      proxy/vmess/config/json/outbound.go

+ 1 - 0
proxy/vmess/config/json/outbound.go

@@ -35,6 +35,7 @@ func (t *ConfigTarget) UnmarshalJSON(data []byte) error {
 	if err := json.Unmarshal(data, &rawConfig); err != nil {
 		return err
 	}
+	t.Users = rawConfig.Users
 	ip := net.ParseIP(rawConfig.Address)
 	if ip == nil {
 		log.Error("Unable to parse IP: %s", rawConfig.Address)