Browse Source

Don't serialize deprecated config options

Jakob Borg 11 years ago
parent
commit
0fcbee6478
1 changed files with 3 additions and 3 deletions
  1. 3 3
      cmd/syncthing/config.go

+ 3 - 3
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 {