Skip to content

Commit c4aad26

Browse files
committed
fix visibility of SSHClientSettings.init and update README example
1 parent 66be8cb commit c4aad26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Citadel's `SSHClient` needs a connection to a SSH server first:
1313
```swift
1414
let settings = SSHClientSettings(
1515
host: "example.com",
16-
authenticationMethod: .passwordBased(username: "joannis", password: "s3cr3t"),
16+
authenticationMethod: { .passwordBased(username: "joannis", password: "s3cr3t") },
1717
// Please use another validator if at all possible, it's insecure
1818
// But it's an easy way to try out Citadel
1919
hostKeyValidator: .acceptAnything()

Sources/Citadel/ClientSession.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public struct SSHClientSettings: Sendable {
5050
internal var channelHandlers: [ChannelHandler & Sendable] = []
5151
public var connectTimeout: TimeAmount = .seconds(30)
5252

53-
init(
53+
public init(
5454
host: String,
5555
port: Int = 22,
5656
authenticationMethod: @Sendable @escaping () -> SSHAuthenticationMethod,

0 commit comments

Comments
 (0)