mirror of
https://github.com/kalarina-bit/Sparkledns.git
synced 2026-11-22 15:46:09 +00:00
Personal access key for the SkySparkle server and first-launch guide
The SkySparkle server no longer has a shared public address: each user creates a key in their account at skysparkle.cc and the app connects to https://skysparkle.cc/dns/<key>. The key is entered in Settings under the server or in the new two-page guide shown on first launch. Without a key the home screen shows a hint and the service explains why it did not start.
This commit is contained in:
@@ -106,7 +106,10 @@ class DohVpnService : VpnService() {
|
||||
if (provider.url.toHttpUrlOrNull()?.isHttps != true) {
|
||||
Log.e(TAG, "Server address is not a valid HTTPS URL, not starting")
|
||||
stopSession()
|
||||
showAlert(R.string.alert_bad_url_title, R.string.alert_bad_url_text)
|
||||
showAlert(
|
||||
R.string.alert_bad_url_title,
|
||||
if (provider.id == Providers.DEFAULT_ID) R.string.alert_no_key_text else R.string.alert_bad_url_text,
|
||||
)
|
||||
stopSelf()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user