Skip to content

Commit cdcb937

Browse files
author
jiangwy
committed
fix: update host to hostname in WebSocket headers 🐛
1 parent 90ad9a5 commit cdcb937

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/parser/protocol/vless.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class VlessParser extends Faker {
7272
path: decodeURIComponent(this.originConfig.searchParams?.get('path') ?? '/'),
7373
headers: {
7474
...proxy['ws-opts'].headers,
75-
Host: this.originConfig.host
75+
Host: this.originConfig.hostname
7676
}
7777
};
7878
}

src/core/parser/protocol/vmess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class VmessParser extends Faker {
7272
path: this.originConfig.path,
7373
headers: {
7474
...proxy['ws-opts'].headers,
75-
Host: this.originConfig.host
75+
Host: this.originConfig.add
7676
}
7777
};
7878
}

0 commit comments

Comments
 (0)