Skip to content

Commit

Permalink
Disable UDP relay if plugin is enabled and no fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Jun 1, 2020
1 parent e53d964 commit fbffc98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fbffc98

Please sign in to comment.