diff --git a/app/src/main/java/io/nekohasekai/sagernet/group/RawUpdater.kt b/app/src/main/java/io/nekohasekai/sagernet/group/RawUpdater.kt index 5e1e6181..389a87f8 100644 --- a/app/src/main/java/io/nekohasekai/sagernet/group/RawUpdater.kt +++ b/app/src/main/java/io/nekohasekai/sagernet/group/RawUpdater.kt @@ -333,7 +333,7 @@ object RawUpdater : GroupUpdater() { } "ws-opts", "ws-opt" -> for (wsOpt in (opt.value as Map)) { when (wsOpt.key.lowercase()) { - "headers" -> for (wsHeader in (opt.value as Map)) { + "headers" -> for (wsHeader in (wsOpt.value as Map)) { when (wsHeader.key.lowercase()) { "host" -> bean.host = wsHeader.value.toString() } @@ -400,7 +400,7 @@ object RawUpdater : GroupUpdater() { } "ws-opts", "ws-opt" -> for (wsOpt in (opt.value as Map)) { when (wsOpt.key.lowercase()) { - "headers" -> for (wsHeader in (opt.value as Map)) { + "headers" -> for (wsHeader in (wsOpt.value as Map)) { when (wsHeader.key.lowercase()) { "host" -> bean.host = wsHeader.value.toString() }