File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import type {
10
10
} from './types' ;
11
11
import type { Header } from './native/types' ;
12
12
import type QUICConnectionMap from './QUICConnectionMap' ;
13
- import type { QUICConfig , TlsConfig } from './config' ;
13
+ import type { QUICConfig } from './config' ;
14
14
import type { QUICServerConnectionEvent } from './events' ;
15
15
import Logger from '@matrixai/logger' ;
16
16
import { running } from '@matrixai/async-init' ;
@@ -70,8 +70,8 @@ class QUICServer extends EventTarget {
70
70
71
71
public constructor ( {
72
72
crypto,
73
- socket,
74
73
config,
74
+ socket,
75
75
resolveHostname = utils . resolveHostname ,
76
76
reasonToCode,
77
77
codeToReason,
@@ -84,11 +84,11 @@ class QUICServer extends EventTarget {
84
84
key : ArrayBuffer ;
85
85
ops : Crypto ;
86
86
} ;
87
+ config : Partial < QUICConfig & {
88
+ key : string | Array < string > | Uint8Array | Array < Uint8Array > ;
89
+ cert : string | Array < string > | Uint8Array | Array < Uint8Array > ;
90
+ } > ;
87
91
socket ?: QUICSocket ;
88
- // This actually requires TLS
89
- // You have to specify these some how
90
- // We can force it
91
- config : Partial < QUICConfig > & { tlsConfig : TlsConfig } ;
92
92
resolveHostname ?: ( hostname : Hostname ) => Host | PromiseLike < Host > ;
93
93
reasonToCode ?: StreamReasonToCode ;
94
94
codeToReason ?: StreamCodeToReason ;
You can’t perform that action at this time.
0 commit comments