Rod Hynes 3 лет назад
Родитель
Сommit
672f7dc52f
1 измененных файлов с 7 добавлено и 8 удалено
  1. 7 8
      psiphon/common/parameters/parameters.go

+ 7 - 8
psiphon/common/parameters/parameters.go

@@ -32,10 +32,10 @@ snapshot so that related parameters, such as two Ints representing a range; or
 a more complex series of related parameters; may be read in an atomic and
 a more complex series of related parameters; may be read in an atomic and
 consistent way. For example:
 consistent way. For example:
 
 
-    p := params.Get()
-    min := p.Int("Min")
-    max := p.Int("Max")
-    p = nil
+	p := params.Get()
+	min := p.Int("Min")
+	max := p.Int("Max")
+	p = nil
 
 
 For long-running operations, it is recommended to set any pointer to the
 For long-running operations, it is recommended to set any pointer to the
 snapshot to nil to allow garbage collection of old snaphots in cases where the
 snapshot to nil to allow garbage collection of old snaphots in cases where the
@@ -508,7 +508,7 @@ var defaultParameters = map[string]struct {
 	//
 	//
 	// MeekCookieMaxPadding cannot exceed common.OBFUSCATE_SEED_LENGTH.
 	// MeekCookieMaxPadding cannot exceed common.OBFUSCATE_SEED_LENGTH.
 	//
 	//
-	// MeekMinTLSPadding/MeekMinTLSPadding are subject to TLS server limitations.
+	// MeekMinTLSPadding/MeekMaxTLSPadding are subject to TLS server limitations.
 	//
 	//
 	// MeekMinLimitRequestPayloadLength/MeekMaxLimitRequestPayloadLength
 	// MeekMinLimitRequestPayloadLength/MeekMaxLimitRequestPayloadLength
 	// cannot exceed server.MEEK_MAX_REQUEST_PAYLOAD_LENGTH.
 	// cannot exceed server.MEEK_MAX_REQUEST_PAYLOAD_LENGTH.
@@ -1119,9 +1119,8 @@ func (p *Parameters) Get() ParametersAccessor {
 //
 //
 // Customizations include:
 // Customizations include:
 //
 //
-// - customNetworkLatencyMultiplier, which overrides NetworkLatencyMultiplier
-//   for this instance only.
-//
+//   - customNetworkLatencyMultiplier, which overrides NetworkLatencyMultiplier
+//     for this instance only.
 func (p *Parameters) GetCustom(
 func (p *Parameters) GetCustom(
 	customNetworkLatencyMultiplier float64) ParametersAccessor {
 	customNetworkLatencyMultiplier float64) ParametersAccessor {