Move include_country to the sharing options

This commit is contained in:
Arturo Filastò
2018-09-13 11:02:49 +02:00
parent 7f5df07782
commit 251f136b53
5 changed files with 122 additions and 123 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ func TestParseConfig(t *testing.T) {
if len(config.NettestGroups.Middlebox.EnabledTests) < 0 {
t.Error("at least one middlebox test should be enabled")
}
if config.Advanced.IncludeCountry == false {
if config.Sharing.IncludeCountry == false {
t.Error("country should be included")
}
}
+5 -5
View File
@@ -110,15 +110,15 @@ type Notifications struct {
// Sharing settings
type Sharing struct {
IncludeIP bool `json:"include_ip"`
IncludeASN bool `json:"include_asn"`
IncludeGPS bool `json:"include_gps"`
UploadResults bool `json:"upload_results"`
IncludeIP bool `json:"include_ip"`
IncludeASN bool `json:"include_asn"`
IncludeCountry bool `json:"include_country"`
IncludeGPS bool `json:"include_gps"`
UploadResults bool `json:"upload_results"`
}
// Advanced settings
type Advanced struct {
IncludeCountry bool `json:"include_country"`
UseDomainFronting bool `json:"use_domain_fronting"`
SendCrashReports bool `json:"send_crash_reports"`
}
+1 -1
View File
@@ -5,6 +5,7 @@
"auto_update": true,
"sharing": {
"include_ip": false,
"include_country": true,
"include_asn": true,
"include_gps": true,
"upload_results": true
@@ -56,7 +57,6 @@
}
},
"advanced": {
"include_country": true,
"use_domain_fronting": false,
"send_crash_reports": true
}