Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
aztecrabbit committed Feb 5, 2020
1 parent 082c4ac commit 57f3828
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
const (
appName = "Brainfuck Tunnel"
appVersionName = "Psiphon Pro Go"
appVersionCode = "1.3.200202"
appVersionCode = "1.3.200205"

copyrightYear = "2020"
copyrightAuthor = "Aztec Rabbit"
Expand Down
15 changes: 4 additions & 11 deletions src/libpsiphon/libpsiphon.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,12 @@ func (p *Psiphon) Start() {
if strings.HasPrefix(message, "Config migration:") {
continue
} else if strings.Contains(message, "meek round trip failed") {
if p.TunnelConnected == p.Config.Tunnel && (
if p.Config.Tunnel == 1 && p.Config.Tunnel == p.TunnelConnected && (
message == "meek round trip failed: remote error: tls: bad record MAC" ||
message == "meek round trip failed: context deadline exceeded" ||
message == "meek round trip failed: EOF" ||
strings.Contains(message, "psiphon.CustomTLSDial")) {
if p.Config.Tunnel == 1 {
// p.LogInfo(message, liblog.Colors["R1"])
break
}
p.LogInfo(message, liblog.Colors["R2"])
break
}
} else if strings.Contains(message, "controller shutdown due to component failure") ||
strings.Contains(message, "psiphon.(*ServerContext).DoStatusRequest") ||
Expand All @@ -217,11 +213,8 @@ func (p *Psiphon) Start() {
strings.Contains(message, "underlying conn is closed") ||
strings.Contains(message, "duplicate tunnel:") ||
strings.Contains(message, "tunnel failed:") {
if p.Config.Tunnel == 1 {
// p.LogInfo("Break: " + text, liblog.Colors["R1"])
break
}
p.LogInfo(text, liblog.Colors["R2"])
// p.LogInfo("Break: " + text, liblog.Colors["R1"])
break
} else if strings.Contains(message, "A connection attempt failed because the connected party did not properly respond after a period of time") ||
strings.Contains(message, "No connection could be made because the target machine actively refused it") ||
strings.Contains(message, "tunnel.dialTunnel: dialConn is not a Closer") ||
Expand Down

0 comments on commit 57f3828

Please sign in to comment.