Commit fbffc984 authored by Max Lv's avatar Max Lv

Disable UDP relay if plugin is enabled and no fallback

parent e53d9642
......@@ -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,
......
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