Просмотр исходного кода

Rename "ReportSLOKs" to "EmitSLOKs"

Rod Hynes 9 лет назад
Родитель
Сommit
b15f9987b6
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      psiphon/config.go
  2. 1 1
      psiphon/serverApi.go

+ 2 - 2
psiphon/config.go

@@ -405,10 +405,10 @@ type Config struct {
 	// RateLimits specify throttling configuration for the tunnel.
 	RateLimits common.RateLimits
 
-	// ReportSLOKs indicates whether to emit notices for each seeded SLOK. As this
+	// EmitSLOKs indicates whether to emit notices for each seeded SLOK. As this
 	// could reveal user browsing activity, it's intended for debugging and testing
 	// only.
-	ReportSLOKs bool
+	EmitSLOKs bool
 }
 
 // LoadConfig parses and validates a JSON format Psiphon config JSON

+ 1 - 1
psiphon/serverApi.go

@@ -973,7 +973,7 @@ func HandleOSLRequest(
 			seededNewSLOK = true
 		}
 
-		if tunnel.config.ReportSLOKs {
+		if tunnel.config.EmitSLOKs {
 			NoticeSLOKSeeded(base64.StdEncoding.EncodeToString(slok.ID), duplicate)
 		}
 	}