Fix windows compatibility issues

Former-commit-id: 0e690a6a84
This commit is contained in:
Owen
2026-06-04 11:47:49 -07:00
parent 86180c0ee8
commit 3d8a269819
6 changed files with 94 additions and 0 deletions
+2
View File
@@ -1,3 +1,5 @@
//go:build !windows
package browsergateway
import (
+16
View File
@@ -0,0 +1,16 @@
//go:build windows
package browsergateway
import (
"context"
"errors"
"github.com/coder/websocket"
"github.com/fosrl/newt/nativessh"
)
// serveNativeSSHSession is not supported on Windows.
func serveNativeSSHSession(_ context.Context, _ *websocket.Conn, _ string, _ *nativessh.CredentialStore) error {
return errors.New("native SSH is not supported on Windows")
}