Skip to content
Permalink
Browse files
Disable UDP relay if plugin is enabled and no fallback
  • Loading branch information
madeye committed Jun 1, 2020
1 parent e53d964 commit fbffc9841fdcb586d6929af04d8302f490f52068
Showing with 1 addition and 1 deletion.
  1. +1 −1 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,

0 comments on commit fbffc98

Please sign in to comment.