-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fix mosh bootstrap staging: real argv for mosh-server, stage-specific errors, proxy address fallback #10101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix mosh bootstrap staging: real argv for mosh-server, stage-specific errors, proxy address fallback #10101
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
40885d8
test: cover mosh bootstrap stage and address fallback
austinywang 2e61187
fix: make mosh bootstrap shell-safe and report stages
austinywang aae3632
test: cover address probe edge cases
austinywang d688b76
fix: force POSIX shell for staged restore launch
austinywang a70386f
fix: quote staged bootstrap launcher for login shells
austinywang d4b95fe
test: prove staged bootstrap must survive mosh-server execvp
austinywang b7f128b
fix: pass staged bootstrap to mosh-server as real argv and prefer pro…
austinywang 84f676a
chore: address PR review feedback
austinywang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
21 changes: 21 additions & 0 deletions
21
Packages/macOS/CmuxFoundation/Sources/CmuxFoundation/MoshRemoteIPMode.swift
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| internal import Foundation | ||
|
|
||
| /// Selects how Mosh discovers the address used for its UDP session. | ||
| public enum MoshRemoteIPMode: String, Codable, Equatable, Sendable { | ||
| /// Derive the address from the remote SSH connection when possible. | ||
| case remote | ||
|
|
||
| /// Resolve the destination locally before starting the Mosh server. | ||
| case local | ||
|
|
||
| /// Resolve the address through Mosh's local proxy path. | ||
| case proxy | ||
|
|
||
| /// Parses a case-insensitive command-line value. | ||
| /// | ||
| /// - Parameter value: The value supplied for a Mosh remote-IP mode. | ||
| /// - Returns: The matching mode, or `nil` for an unsupported value. | ||
| public init?(cliValue value: String) { | ||
| self.init(rawValue: value.trimmingCharacters(in: .whitespacesAndNewlines).lowercased()) | ||
| } | ||
| } |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.