mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
Fix: V5 config register (#1879)
This commit is contained in:
parent
5157e5fffe
commit
8c6dfb2b6f
@ -40,8 +40,6 @@ func init() {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return loadJSONConfig(data)
|
return loadJSONConfig(data)
|
||||||
case []byte:
|
|
||||||
return loadJSONConfig(v)
|
|
||||||
case io.Reader:
|
case io.Reader:
|
||||||
data, err := buf.ReadAllToBytes(&json.Reader{
|
data, err := buf.ReadAllToBytes(&json.Reader{
|
||||||
Reader: v,
|
Reader: v,
|
||||||
|
Loading…
Reference in New Issue
Block a user