Przeglądaj źródła

Fix: correctly handle !isLocalDerivedTag case

- This is a fail-safe; no existing code sets
  isLocalDerivedTag to false.
Rod Hynes 6 lat temu
rodzic
commit
87a212d17a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      psiphon/common/protocol/serverEntry.go

+ 1 - 1
psiphon/common/protocol/serverEntry.go

@@ -143,7 +143,7 @@ func (fields ServerEntryFields) SetTag(tag string) {
 				return
 			}
 			isLocalDerivedTagBool, ok := isLocalDerivedTag.(bool)
-			if ok && isLocalDerivedTagBool {
+			if ok && !isLocalDerivedTagBool {
 				return
 			}
 		}