File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,6 @@ export class ProxyParser {
190
190
obfs : obfs ,
191
191
auth : params . auth ,
192
192
recv_window_conn : params . recv_window_conn ,
193
- insecure : Boolean ( params . insecure ) ,
194
193
up_mbps : params ?. upmbps ? parseInt ( params . upmbps ) : undefined ,
195
194
down_mbps : params ?. downmbps ? parseInt ( params . downmbps ) : undefined
196
195
} ;
Original file line number Diff line number Diff line change @@ -167,12 +167,14 @@ export function parseServerInfo(serverInfo) {
167
167
}
168
168
return tls ;
169
169
}
170
-
171
- export function createTransportConfig ( params ) {
170
+
171
+ export function createTransportConfig ( params ) {
172
172
return {
173
- type : params . type ,
174
- path : params . path ?? undefined ,
175
- ...( params . host && { 'headers' : { 'host' : params . host } } ) ,
176
- service_name : params . serviceName ?? undefined ,
173
+ type : params . type ,
174
+ path : params . path ?? undefined ,
175
+ ...( params . host && { 'headers' : { 'host' : params . host } } ) ,
176
+ ...( params . type === 'grpc' && {
177
+ service_name : params . serviceName ?? undefined ,
178
+ } )
177
179
} ;
178
- }
180
+ }
You can’t perform that action at this time.
0 commit comments