Skip to content

Commit fbffc98

Browse files
committed
Disable UDP relay if plugin is enabled and no fallback
1 parent e53d964 commit fbffc98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/github/shadowsocks/bg/BaseService.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ object BaseService {
244244
data.proxy!!.start(this,
245245
File(Core.deviceStorage.noBackupFilesDir, "stat_main"),
246246
File(configRoot, CONFIG_FILE),
247-
if (udpFallback == null) "-U" else null)
247+
if (udpFallback == null && data.proxy?.plugin == null) "-U" else null)
248248
if (udpFallback?.plugin != null) throw ExpectedExceptionWrapper(IllegalStateException(
249249
"UDP fallback cannot have plugins"))
250250
udpFallback?.start(this,

0 commit comments

Comments
 (0)