Skip to content

Commit

Permalink
fix: clash wsOpt
Browse files Browse the repository at this point in the history
  • Loading branch information
arm64v8a committed May 2, 2023
1 parent 07145f0 commit 0f2940d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/io/nekohasekai/sagernet/group/RawUpdater.kt
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ object RawUpdater : GroupUpdater() {
}
"ws-opts", "ws-opt" -> for (wsOpt in (opt.value as Map<String, Any>)) {
when (wsOpt.key.lowercase()) {
"headers" -> for (wsHeader in (opt.value as Map<String, Any>)) {
"headers" -> for (wsHeader in (wsOpt.value as Map<String, Any>)) {
when (wsHeader.key.lowercase()) {
"host" -> bean.host = wsHeader.value.toString()
}
Expand Down Expand Up @@ -400,7 +400,7 @@ object RawUpdater : GroupUpdater() {
}
"ws-opts", "ws-opt" -> for (wsOpt in (opt.value as Map<String, Any>)) {
when (wsOpt.key.lowercase()) {
"headers" -> for (wsHeader in (opt.value as Map<String, Any>)) {
"headers" -> for (wsHeader in (wsOpt.value as Map<String, Any>)) {
when (wsHeader.key.lowercase()) {
"host" -> bean.host = wsHeader.value.toString()
}
Expand Down

0 comments on commit 0f2940d

Please sign in to comment.