From 0fcbee6478208ea6c5267e068a27c332845e5da1 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 11 May 2014 20:13:22 -0300 Subject: [PATCH] Don't serialize deprecated config options --- cmd/syncthing/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/syncthing/config.go b/cmd/syncthing/config.go index 7422b60c4..b42e2207f 100644 --- a/cmd/syncthing/config.go +++ b/cmd/syncthing/config.go @@ -57,9 +57,9 @@ type OptionsConfiguration struct { StartBrowser bool `xml:"startBrowser" default:"true"` UPnPEnabled bool `xml:"upnpEnabled" default:"true"` - Deprecated_ReadOnly bool `xml:"readOnly,omitempty"` - Deprecated_GUIEnabled bool `xml:"guiEnabled,omitempty"` - Deprecated_GUIAddress string `xml:"guiAddress,omitempty"` + Deprecated_ReadOnly bool `xml:"readOnly,omitempty" json:"-"` + Deprecated_GUIEnabled bool `xml:"guiEnabled,omitempty" json:"-"` + Deprecated_GUIAddress string `xml:"guiAddress,omitempty" json:"-"` } type GUIConfiguration struct {