Skip to content

Commit

Permalink
Prevent proxy bypass when Tor port is not yet available
Browse files Browse the repository at this point in the history
  • Loading branch information
valldrac committed Apr 6, 2022
1 parent 826bbe2 commit 1b91d48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/main/java/org/thoughtcrime/securesms/net/Network.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ object Network {
@JvmStatic
val proxy
get(): Proxy? {
return socksProxy?.makeProxy() ?: Proxy.NO_PROXY
if (socksProxy != null) {
return socksProxy?.makeProxy()
} else {
return Proxy.NO_PROXY
}
}

@JvmStatic
Expand Down

0 comments on commit 1b91d48

Please sign in to comment.