mirror of https://github.com/Corewala/Buran
Removed broken null check on http proxy
This commit is contained in:
parent
26093144dd
commit
f89f41ae14
|
@ -919,19 +919,17 @@ class GemActivity : AppCompatActivity() {
|
||||||
updateClientCertIcon()
|
updateClientCertIcon()
|
||||||
|
|
||||||
if(address.startsWith("http://") or address.startsWith("https://")){
|
if(address.startsWith("http://") or address.startsWith("https://")){
|
||||||
val httpProxy = prefs.getString("http_proxy", null)
|
val httpProxy = prefs.getString("http_proxy", null) ?: ""
|
||||||
|
|
||||||
if (httpProxy != null) {
|
if(
|
||||||
if(
|
httpProxy.isNullOrEmpty()
|
||||||
httpProxy.isNullOrEmpty()
|
or !httpProxy.startsWith("gemini://")
|
||||||
or !httpProxy.startsWith("gemini://")
|
or httpProxy.contains(" ")
|
||||||
or httpProxy.contains(" ")
|
or !httpProxy.contains(".")
|
||||||
or !httpProxy.contains(".")
|
){
|
||||||
){
|
openExternalLink(address)
|
||||||
openExternalLink(address)
|
}else{
|
||||||
}else{
|
model.request(httpProxy, certPassword, address)
|
||||||
model.request(httpProxy, certPassword, address)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue