mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 18:17:52 -05:00
rename json fields
This commit is contained in:
parent
754e8b6e78
commit
be81d246f2
@ -13,11 +13,11 @@ import (
|
|||||||
|
|
||||||
func (this *TLSSettings) UnmarshalJSON(data []byte) error {
|
func (this *TLSSettings) UnmarshalJSON(data []byte) error {
|
||||||
type JSONCertConfig struct {
|
type JSONCertConfig struct {
|
||||||
CertFile string `json:"certFile"`
|
CertFile string `json:"certificateFile"`
|
||||||
KeyFile string `json:"keyFile"`
|
KeyFile string `json:"keyFile"`
|
||||||
}
|
}
|
||||||
type JSONConfig struct {
|
type JSONConfig struct {
|
||||||
Certs []*JSONCertConfig `json:"certs"`
|
Certs []*JSONCertConfig `json:"certificates"`
|
||||||
}
|
}
|
||||||
jsonConfig := new(JSONConfig)
|
jsonConfig := new(JSONConfig)
|
||||||
if err := json.Unmarshal(data, jsonConfig); err != nil {
|
if err := json.Unmarshal(data, jsonConfig); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user