From be81d246f2bd3d88580596ffaa0f9acef3738882 Mon Sep 17 00:00:00 2001 From: v2ray Date: Sun, 10 Jul 2016 15:29:03 +0200 Subject: [PATCH] rename json fields --- transport/internet/connection_json.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/internet/connection_json.go b/transport/internet/connection_json.go index 6b96ad8b..2d17da91 100644 --- a/transport/internet/connection_json.go +++ b/transport/internet/connection_json.go @@ -13,11 +13,11 @@ import ( func (this *TLSSettings) UnmarshalJSON(data []byte) error { type JSONCertConfig struct { - CertFile string `json:"certFile"` + CertFile string `json:"certificateFile"` KeyFile string `json:"keyFile"` } type JSONConfig struct { - Certs []*JSONCertConfig `json:"certs"` + Certs []*JSONCertConfig `json:"certificates"` } jsonConfig := new(JSONConfig) if err := json.Unmarshal(data, jsonConfig); err != nil {