Skip to content

Commit 8283a20

Browse files
author
Carlos Cabanero
committed
Merge remote-tracking branch 'origin/raw' into raw
2 parents 894c7ce + 7b7c8fe commit 8283a20

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

Blink.xcodeproj/project.pbxproj

+2
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,7 @@
911911
BDD6D148275951D900E76F1F /* BKGlobalSSHConfig.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BKGlobalSSHConfig.swift; sourceTree = "<group>"; };
912912
BDE7125C2A141E3100164F70 /* SSHAgentUserPrompt.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SSHAgentUserPrompt.swift; sourceTree = "<group>"; };
913913
BDE7C45B29DCAEFA005E033E /* FileLocationPathTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileLocationPathTests.swift; sourceTree = "<group>"; };
914+
BDEEE36B2B8951D3003003FD /* get_frameworks.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = get_frameworks.sh; sourceTree = "<group>"; };
914915
C94437551D8311960096F84E /* BKResource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BKResource.h; sourceTree = "<group>"; };
915916
C94437561D8311960096F84E /* BKResource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BKResource.m; sourceTree = "<group>"; };
916917
C944375F1D831CD30096F84E /* Themes */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Themes; sourceTree = "<group>"; };
@@ -2309,6 +2310,7 @@
23092310
EA0BA1821C0CC57B00719C1A = {
23102311
isa = PBXGroup;
23112312
children = (
2313+
BDEEE36B2B8951D3003003FD /* get_frameworks.sh */,
23122314
D23FFC69261C2D46003E9227 /* template_setup.xcconfig */,
23132315
D27D01232615F1BD00128C23 /* developer_setup.xcconfig */,
23142316
D2C243F7238E44960082C69C /* KB */,

Blink/Commands/mosh/MoshBootstrap.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ extension Architecture {
134134
public var downloadableDescription: String {
135135
switch self {
136136
case .X86_64:
137-
return "x86_64"
137+
return "amd64"
138138
case .Aarch64:
139139
return "arm64"
140140
case .Arm64:

Blink/SpaceController.swift

+8
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import MBProgressHUD
3838
import SwiftUI
3939

4040

41+
// MARK: UIViewController
4142
class SpaceController: UIViewController {
4243

4344
struct UIState: UserActivityCodable {
@@ -536,6 +537,7 @@ class SpaceController: UIViewController {
536537

537538
}
538539

540+
// MARK: UIStateRestorable
539541
extension SpaceController: UIStateRestorable {
540542
func restore(withState state: UIState) {
541543
_viewportsKeys = state.keys
@@ -566,6 +568,7 @@ extension SpaceController: UIStateRestorable {
566568
}
567569
}
568570

571+
// MARK: UIPageViewControllerDelegate
569572
extension SpaceController: UIPageViewControllerDelegate {
570573
public func pageViewController(
571574
_ pageViewController: UIPageViewController,
@@ -586,6 +589,7 @@ extension SpaceController: UIPageViewControllerDelegate {
586589
}
587590
}
588591

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

617621
}
618622

623+
// MARK: TermControlDelegate
619624
extension SpaceController: TermControlDelegate {
620625

621626
func terminalHangup(control: TermController) {
@@ -1146,6 +1151,7 @@ extension SpaceController {
11461151

11471152
}
11481153

1154+
// MARK: CommandsHUDDelegate
11491155
extension SpaceController: CommandsHUDDelegate {
11501156
@objc func currentTerm() -> TermController? {
11511157
if let currentKey = _currentKey {
@@ -1157,6 +1163,8 @@ extension SpaceController: CommandsHUDDelegate {
11571163
@objc func spaceController() -> SpaceController? { self }
11581164
}
11591165

1166+
// MARK: SnippetContext
1167+
11601168
extension SpaceController: SnippetContext {
11611169

11621170
func _presentSnippetsController(receiver: SpaceController) {

SSH/SSHClient.swift

+8-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,14 @@ public class SSHClient {
276276
let command = String(cString: cmd!)
277277
// Will break if unconfigured. It can be considered
278278
// a code error.
279-
return ctxt.proxyCb!(command, inSock, outSock)
279+
guard let proxyCb = ctxt.proxyCb else {
280+
ctxt.log.message("No proxy callback configured. Cannot run ProxyCommand", SSH_LOG_WARN)
281+
shutdown(inSock, SHUT_RDWR)
282+
shutdown(outSock, SHUT_RDWR)
283+
return
284+
}
285+
286+
return proxyCb(command, inSock, outSock)
280287
}
281288
}
282289

0 commit comments

Comments
 (0)