File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
ytflow-app-util/src/profile Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ fn encode_cbor_buf(buf: &[u8]) -> TomlValue {
74
74
CborValue :: Text ( s) => s == "__byte_repr" || s == "__toml_repr" ,
75
75
_ => false ,
76
76
} ) ;
77
- table. set_dotted ( !( is_repr || indent > 2 ) ) ;
77
+ table. set_dotted ( !( is_repr || indent > 2 || table . is_empty ( ) ) ) ;
78
78
TomlValue :: InlineTable ( table)
79
79
}
80
80
_ => return None ,
@@ -255,6 +255,20 @@ mod tests {
255
255
& db,
256
256
)
257
257
. unwrap ( ) ;
258
+ Plugin :: create (
259
+ profile_id,
260
+ "ws-client" . into ( ) ,
261
+ "WebSocket client." . into ( ) ,
262
+ "ws-client" . into ( ) ,
263
+ 0 ,
264
+ to_cbor ( cbor ! ( {
265
+ "headers" => { } ,
266
+ "next" => "client-tls.tcp"
267
+ } ) )
268
+ . to_vec ( ) ,
269
+ & db,
270
+ )
271
+ . unwrap ( ) ;
258
272
Plugin :: create (
259
273
profile_id,
260
274
"null" . into ( ) ,
@@ -336,6 +350,14 @@ param.fallback.udp = "proxy-forward.udp"
336
350
param.fallback.resolver = "fake-ip.resolver"
337
351
updated_at = 2024-04-27T09:43:17.191
338
352
353
+ # WebSocket client.
354
+ [plugins.ws-client]
355
+ plugin = "ws-client"
356
+ plugin_version = 0
357
+ param.headers = {}
358
+ param.next = "client-tls.tcp"
359
+ updated_at = 2024-04-27T09:43:17.191
360
+
339
361
# null
340
362
[plugins.null]
341
363
plugin = "null"
You can’t perform that action at this time.
0 commit comments