Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/raw' into raw
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Cabanero committed Mar 11, 2024
2 parents 894c7ce + 7b7c8fe commit 8283a20
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Blink.xcodeproj/project.pbxproj
Expand Up @@ -911,6 +911,7 @@
BDD6D148275951D900E76F1F /* BKGlobalSSHConfig.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BKGlobalSSHConfig.swift; sourceTree = "<group>"; };
BDE7125C2A141E3100164F70 /* SSHAgentUserPrompt.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSHAgentUserPrompt.swift; sourceTree = "<group>"; };
BDE7C45B29DCAEFA005E033E /* FileLocationPathTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileLocationPathTests.swift; sourceTree = "<group>"; };
BDEEE36B2B8951D3003003FD /* get_frameworks.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = get_frameworks.sh; sourceTree = "<group>"; };
C94437551D8311960096F84E /* BKResource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BKResource.h; sourceTree = "<group>"; };
C94437561D8311960096F84E /* BKResource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BKResource.m; sourceTree = "<group>"; };
C944375F1D831CD30096F84E /* Themes */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Themes; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2309,6 +2310,7 @@
EA0BA1821C0CC57B00719C1A = {
isa = PBXGroup;
children = (
BDEEE36B2B8951D3003003FD /* get_frameworks.sh */,
D23FFC69261C2D46003E9227 /* template_setup.xcconfig */,
D27D01232615F1BD00128C23 /* developer_setup.xcconfig */,
D2C243F7238E44960082C69C /* KB */,
Expand Down
2 changes: 1 addition & 1 deletion Blink/Commands/mosh/MoshBootstrap.swift
Expand Up @@ -134,7 +134,7 @@ extension Architecture {
public var downloadableDescription: String {
switch self {
case .X86_64:
return "x86_64"
return "amd64"
case .Aarch64:
return "arm64"
case .Arm64:
Expand Down
8 changes: 8 additions & 0 deletions Blink/SpaceController.swift
Expand Up @@ -38,6 +38,7 @@ import MBProgressHUD
import SwiftUI


// MARK: UIViewController
class SpaceController: UIViewController {

struct UIState: UserActivityCodable {
Expand Down Expand Up @@ -536,6 +537,7 @@ class SpaceController: UIViewController {

}

// MARK: UIStateRestorable
extension SpaceController: UIStateRestorable {
func restore(withState state: UIState) {
_viewportsKeys = state.keys
Expand Down Expand Up @@ -566,6 +568,7 @@ extension SpaceController: UIStateRestorable {
}
}

// MARK: UIPageViewControllerDelegate
extension SpaceController: UIPageViewControllerDelegate {
public func pageViewController(
_ pageViewController: UIPageViewController,
Expand All @@ -586,6 +589,7 @@ extension SpaceController: UIPageViewControllerDelegate {
}
}

// MARK: UIPageViewControllerDataSource
extension SpaceController: UIPageViewControllerDataSource {
private func _controller(controller: UIViewController, advancedBy: Int) -> UIViewController? {
guard let ctrl = controller as? TermController else {
Expand Down Expand Up @@ -616,6 +620,7 @@ extension SpaceController: UIPageViewControllerDataSource {

}

// MARK: TermControlDelegate
extension SpaceController: TermControlDelegate {

func terminalHangup(control: TermController) {
Expand Down Expand Up @@ -1146,6 +1151,7 @@ extension SpaceController {

}

// MARK: CommandsHUDDelegate
extension SpaceController: CommandsHUDDelegate {
@objc func currentTerm() -> TermController? {
if let currentKey = _currentKey {
Expand All @@ -1157,6 +1163,8 @@ extension SpaceController: CommandsHUDDelegate {
@objc func spaceController() -> SpaceController? { self }
}

// MARK: SnippetContext

extension SpaceController: SnippetContext {

func _presentSnippetsController(receiver: SpaceController) {
Expand Down
9 changes: 8 additions & 1 deletion SSH/SSHClient.swift
Expand Up @@ -276,7 +276,14 @@ public class SSHClient {
let command = String(cString: cmd!)
// Will break if unconfigured. It can be considered
// a code error.
return ctxt.proxyCb!(command, inSock, outSock)
guard let proxyCb = ctxt.proxyCb else {
ctxt.log.message("No proxy callback configured. Cannot run ProxyCommand", SSH_LOG_WARN)
shutdown(inSock, SHUT_RDWR)
shutdown(outSock, SHUT_RDWR)
return
}

return proxyCb(command, inSock, outSock)
}
}

Expand Down

0 comments on commit 8283a20

Please sign in to comment.