Commit 39f784a9 authored by Mygod's avatar Mygod

Check plugin properly

Fix #2667.
parent 1983dec1
......@@ -47,7 +47,7 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
suspend fun init(service: BaseService.Interface) {
// it's hard to resolve DNS on a specific interface so we'll do it here
if (profile.host.parseNumericAddress() == null && profile.plugin != null) {
if (plugin != null && profile.host.parseNumericAddress() == null) {
profile.host = try {
service.resolver(profile.host).firstOrNull()
} catch (e: IOException) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment