Skip to content

Commit

Permalink
fix: port-forwarding on other than port 9000 now works
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed Mar 6, 2024
1 parent 91d795b commit 32ce564
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/streamingBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ if (typeof window !== 'undefined') {
URL = protocol + '://' + window.location.hostname;

let port = window.location.port
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
port = 9000
}
// if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
// port = 9000
// }
if (port && port !== '') {
URL = URL + ':' + port
}
Expand Down

0 comments on commit 32ce564

Please sign in to comment.