Ver código fonte

Shorter notice label

Rod Hynes 11 anos atrás
pai
commit
3a6542f5a1
2 arquivos alterados com 5 adições e 5 exclusões
  1. 4 4
      psiphon/notice.go
  2. 1 1
      psiphon/splitTunnel.go

+ 4 - 4
psiphon/notice.go

@@ -159,14 +159,14 @@ func NoticeTunnels(count int) {
 	outputNotice("Tunnels", false, "count", count)
 }
 
-// NoticeUntunneledClassification indicates than an address has been classified as
-// untunneled and is being accessed directly.
+// NoticeUntunneled indicates than an address has been classified as untunneled and is being
+// accessed directly.
 //
 // Note: "address" should remain private; this notice should only be used for alerting
 // users, not for diagnostics logs.
 //
-func NoticeUntunneledClassification(address string) {
-	outputNotice("UntunneledClassification", true, "address", address)
+func NoticeUntunneled(address string) {
+	outputNotice("Untunneled", true, "address", address)
 }
 
 type noticeObject struct {

+ 1 - 1
psiphon/splitTunnel.go

@@ -175,7 +175,7 @@ func (classifier *SplitTunnelClassifier) IsUntunneled(targetAddress string) bool
 	classifier.mutex.Unlock()
 
 	if isUntunneled {
-		NoticeUntunneledClassification(targetAddress)
+		NoticeUntunneled(targetAddress)
 	}
 
 	return isUntunneled