mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-02 16:21:05 +00:00
Fix build break
This commit is contained in:
1 parent
47b2fafb32
commit
50957b9973
4 files changed
+12
-12
No files matched your search
@@ -14,11 +14,11 @@ import (
|
||||
|
||||
func (this *Config) UnmarshalJSON(data []byte) error {
|
||||
type JsonConfig struct {
|
||||
Cipher serial.StringLiteral `json:"method"`
|
||||
Password serial.StringLiteral `json:"password"`
|
||||
UDP bool `json:"udp"`
|
||||
Level byte `json:"level"`
|
||||
Email string `json:"email"`
|
||||
Cipher serial.StringT `json:"method"`
|
||||
Password serial.StringT `json:"password"`
|
||||
UDP bool `json:"udp"`
|
||||
Level byte `json:"level"`
|
||||
Email string `json:"email"`
|
||||
}
|
||||
jsonConfig := new(JsonConfig)
|
||||
if err := json.Unmarshal(data, jsonConfig); err != nil {
|
||||
|
||||
Reference in new issue
Block a user