lib/model: Add option for overwriting names on connect (fixes #2912)

This commit is contained in:
Audrius Butkevicius
2016-04-09 07:43:47 +00:00
committed by Jakob Borg
parent 2eb8a9ef56
commit 4389bb037d
5 changed files with 18 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ type OptionsConfiguration struct {
MinHomeDiskFreePct float64 `xml:"minHomeDiskFreePct" json:"minHomeDiskFreePct" default:"1"`
ReleasesURL string `xml:"releasesURL" json:"releasesURL" default:"https://api.github.com/repos/syncthing/syncthing/releases?per_page=30"`
AlwaysLocalNets []string `xml:"alwaysLocalNet" json:"alwaysLocalNets"`
OverwriteNames bool `xml:"overwriteNames" json:"overwriteNames" default:"false"`
}
func (orig OptionsConfiguration) Copy() OptionsConfiguration {