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

Removed completed item from TODO; minor code simplification

Rod Hynes 11 лет назад
Родитель
Сommit
1bf3cabc01
2 измененных файлов с 2 добавлено и 3 удалено
  1. 0 1
      README.md
  2. 2 2
      psiphon/meekConn.go

+ 0 - 1
README.md

@@ -40,7 +40,6 @@ This project is currently at the proof-of-concept stage. Current production Psip
 * support upgrades
   * download entire client
   * download core component only
-* support protocol preference
 * try multiple protocols for each server (currently only tries one protocol per server)
 * consider ability to multiplex across multiple tunnel sessions
 * support a config pushed by the network

+ 2 - 2
psiphon/meekConn.go

@@ -440,8 +440,8 @@ func makeCookie(serverEntry *ServerEntry, sessionId string) (cookie *http.Cookie
 	obfuscator.ObfuscateClientToServer(obfuscatedCookie[seedLen:])
 	// Format the HTTP cookie
 	// The format is <random letter 'A'-'Z'>=<base64 data>, which is intended to match common cookie formats.
-	A := int([]byte("A")[0])
-	Z := int([]byte("Z")[0])
+	A := int('A')
+	Z := int('Z')
 	letterIndex, err := MakeSecureRandomInt(Z - A)
 	if err != nil {
 		return nil, ContextError(err)