Allow optional DNS ports

This commit is contained in:
Mygod
2018-02-10 23:05:39 -08:00
parent 7f31b63394
commit 840f11355b
4 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ class App : Application() {
val handler = Handler()
val pref: SharedPreferences by lazy { PreferenceManager.getDefaultSharedPreferences(this) }
val dns: String get() = app.pref.getString("service.dns", "8.8.8.8:53")
val dns: String get() = app.pref.getString("service.dns", "8.8.8.8")
fun toast(@StringRes resId: Int) = handler.post { Toast.makeText(app, resId, Toast.LENGTH_SHORT).show() }
}