Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 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 @@ -335,7 +335,11 @@ object BaseService {
val (profile, fallback) = expanded
try {
data.proxy = ProxyInstance(profile)
data.udpFallback = if (fallback == null) null else ProxyInstance(fallback, profile.route)
data.udpFallback = if (fallback == null) null else ProxyInstance(fallback, when (profile.route) {
// UDP relay sees IP endpoints, so hostname-only ACL routes would bypass the selected fallback.
Acl.GFWLIST, Acl.CUSTOM_RULES -> Acl.ALL
else -> profile.route
})
} catch (e: IllegalArgumentException) {
data.notification = createNotification("")
stopRunner(false, e.message)
Expand Down