Skip to content

Commit dca6236

Browse files
fix(ping): allow mixed H3/H2 alpn profiles in TCPing check
1 parent 72a360f commit dca6236

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

V2rayNG/app/src/main/java/com/v2ray/ang/service/RealPingWorkerService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class RealPingWorkerService(
144144
if (!config.configType.isComplexType()
145145
&& config.configType != EConfigType.HYSTERIA2
146146
&& config.configType != EConfigType.WIREGUARD
147-
&& config.alpn?.startsWith("h3") != true
147+
&& config.alpn?.split(',')?.all { it.trim().startsWith("h3") } != true
148148
&& config.server.isNotNullEmpty()
149149
&& config.serverPort?.toIntOrNull() != null
150150
) {

0 commit comments

Comments
 (0)