Add OpenBSD build support#1163
Closed
byteonabeach wants to merge 1 commit into
Closed
Conversation
Owner
|
Hey @byteonabeach
Yes, this is exactly what I want to say. The better way to do this is just set UseWinTTY to true and use the Zoraxy internal tty terminal feature instead. Maybe you can reference |
tobychui
requested changes
May 6, 2026
Owner
tobychui
left a comment
There was a problem hiding this comment.
As previous comment, please use the internal WinTTY feature instead.
Owner
|
Well since OpenBSD is not in our supported list and this only solved compile issue (function still unusable after this patch), I think I better close this. Currently there is no plan to support OpenBSD officially, but feel free to maintain a community port for this if needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Building Zoraxy on OpenBSD 7.8 (amd64) fails because the sshprox package uses symbols UseWinTTY and gotty that are only defined in files with build tags that exclude OpenBSD.
The error is:
mod/sshprox/sshprox.go:67:5: undefined: UseWinTTY
mod/sshprox/sshprox.go:109:5: undefined: UseWinTTY
mod/sshprox/sshprox.go:148:20: undefined: gotty
mod/sshprox/sshprox.go:155:22: undefined: gotty
mod/sshprox/sshprox.go:209:5: undefined: UseWinTTY
mod/sshprox/utils.go:24:5: undefined: UseWinTTY
mod/sshprox/utils.go:36:12: undefined: gotty
I add a single file, src/mod/sshprox/sshprox_openbsd.go, with the build constraint //go:build openbsd. It defines
UseWinTTY = falseand provides an embedded filesystem for the gotty directory. No existing files are modified.After the change the package compiles and the binary links on OpenBSD. The gotty executable for OpenBSD is not embedded, so the SSH proxy feature will still return "platform not supported" at runtime. This PR only addresses the build breakage.