Skip to content

Commit

Permalink
Suppress UDP plugin errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Apr 22, 2020
1 parent 724d61e commit c7e6a57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/com/github/shadowsocks/bg/BaseService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ object BaseService {
File(Core.deviceStorage.noBackupFilesDir, "stat_main"),
File(configRoot, CONFIG_FILE),
if (udpFallback == null) "-U" else null)
check(udpFallback?.plugin == null) { "UDP fallback cannot have plugins" }
if (udpFallback?.plugin != null) throw ExpectedExceptionWrapper(IllegalStateException(
"UDP fallback cannot have plugins"))
udpFallback?.start(this,
File(Core.deviceStorage.noBackupFilesDir, "stat_udp"),
File(configRoot, CONFIG_FILE_UDP),
Expand Down

0 comments on commit c7e6a57

Please sign in to comment.