mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-12-03 17:57:03 +00:00
初始化 ws-opts 以避免未定义时报错
This commit is contained in:
1 parent
feb5bc5765
commit
f5595ce87e
1 file changed
+3
@@ -203,6 +203,9 @@ export default function ClashMeta_Producer() {
|
||||
const reg = /^(.*?)(?:\?ed=(\d+))?$/;
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const [_, path = '', ed = ''] = reg.exec(wsPath);
|
||||
if (!proxy['ws-opts']) {
|
||||
proxy['ws-opts'] = {};
|
||||
}
|
||||
proxy['ws-opts'].path = path;
|
||||
if (ed !== '') {
|
||||
proxy['ws-opts']['early-data-header-name'] =
|
||||
|
||||
Reference in new issue
Block a user