Skip to content

Commit

Permalink
Read host off of url instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kamal committed Sep 14, 2023
1 parent 228f583 commit 6c3b3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class Group extends EventEmitter {
// Handle CONNECT, used by WebSockets and https when accessing .localhost domains
handleConnect(req, socket, head) {
if (req.headers.host) {
const { host } = req.headers
const host = req.url
const { id, hostname, port } = this.parseHost(host)

// If https make socket go through https proxy on 2001
Expand Down

0 comments on commit 6c3b3c2

Please sign in to comment.