Browse Source

Another change missing from d543d4d

Rod Hynes 11 years ago
parent
commit
d12b7475ff
1 changed files with 10 additions and 0 deletions
  1. 10 0
      psiphon/notice.go

+ 10 - 0
psiphon/notice.go

@@ -159,6 +159,16 @@ func NoticeTunnels(count int) {
 	outputNotice("Tunnels", false, "count", count)
 }
 
+// NoticeUntunneledClassification 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)
+}
+
 type noticeObject struct {
 	NoticeType string          `json:"noticeType"`
 	Data       json.RawMessage `json:"data"`