File tree 1 file changed +5
-0
lines changed
base/src/main/java/io/vproxy/base/component/elgroup
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 21
21
import io .vproxy .pni .PNIRef ;
22
22
import io .vproxy .pni .PooledAllocator ;
23
23
import io .vproxy .pni .array .IntArray ;
24
+ import io .vproxy .vfd .FDProvider ;
25
+ import io .vproxy .vfd .posix .PosixFDs ;
24
26
25
27
import java .io .IOException ;
26
28
import java .util .ArrayList ;
@@ -74,6 +76,9 @@ private Registration initQuic() throws XException {
74
76
if (!MsQuicInitializer .isSupported ()) {
75
77
throw new XException ("msquic is not supported" );
76
78
}
79
+ if (!(FDProvider .get ().getProvided () instanceof PosixFDs )) {
80
+ throw new XException ("vfd impl (" + FDProvider .get ().getProvided () + ") does not support quic, please add -Dvfd=posix on startup" );
81
+ }
77
82
78
83
var api = ApiTables .V2 ;
79
84
var allocator = PooledAllocator .ofUnsafePooled ();
You can’t perform that action at this time.
0 commit comments