fix(terminal): support remote server connections and fix GLIBC compatibility (#11906)
This commit is contained in:
committed by
GitHub
parent
154cbf6996
commit
891875402c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user