Skip to content

Commit dabaf22

Browse files
authored
Update xhttp handling for version 4 to read host and path
1 parent b12acc7 commit dabaf22

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/io/nekohasekai/sagernet/fmt/v2ray/StandardV2RayBean.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ public void deserialize(ByteBufferInput input) {
232232
break;
233233
}
234234
case "xhttp": {
235-
host = input.readString();
236-
path = input.readString();
237235
if (version >= 4) {
236+
host = input.readString();
237+
path = input.readString();
238238
xhttpMode = input.readString();
239239
xhttpExtra = input.readString();
240240
}

0 commit comments

Comments
 (0)