From fbffc9841fdcb586d6929af04d8302f490f52068 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Mon, 1 Jun 2020 08:03:59 +0800 Subject: [PATCH] Disable UDP relay if plugin is enabled and no fallback --- core/src/main/java/com/github/shadowsocks/bg/BaseService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/github/shadowsocks/bg/BaseService.kt b/core/src/main/java/com/github/shadowsocks/bg/BaseService.kt index c33d87deba..27ae793694 100644 --- a/core/src/main/java/com/github/shadowsocks/bg/BaseService.kt +++ b/core/src/main/java/com/github/shadowsocks/bg/BaseService.kt @@ -244,7 +244,7 @@ object BaseService { data.proxy!!.start(this, File(Core.deviceStorage.noBackupFilesDir, "stat_main"), File(configRoot, CONFIG_FILE), - if (udpFallback == null) "-U" else null) + if (udpFallback == null && data.proxy?.plugin == null) "-U" else null) if (udpFallback?.plugin != null) throw ExpectedExceptionWrapper(IllegalStateException( "UDP fallback cannot have plugins")) udpFallback?.start(this,