fix(terminal): support remote server connections and fix GLIBC compatibility (#11906)
This commit is contained in:
parent
154cbf6996
commit
891875402c
3 changed files with 4 additions and 3 deletions
|
|
@ -146,6 +146,7 @@ export const Terminal = (props: TerminalProps) => {
|
|||
const once = { value: false }
|
||||
|
||||
const url = new URL(sdk.url + `/pty/${local.pty.id}/connect?directory=${encodeURIComponent(sdk.directory)}`)
|
||||
url.protocol = url.protocol === "https:" ? "wss:" : "ws:"
|
||||
if (window.__OPENCODE__?.serverPassword) {
|
||||
url.username = "opencode"
|
||||
url.password = window.__OPENCODE__?.serverPassword
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue