Skip to content

Commit

Permalink
Updated to use Transmission >= 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
consuelita committed Nov 11, 2021
1 parent a7b6609 commit 1d24f7a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ let package = Package(
targets: ["ShadowSwift"]),
],
dependencies: [
.package(url: "https://github.com/OperatorFoundation/Chord.git", from: "0.0.12"),
.package(url: "https://github.com/OperatorFoundation/Datable.git", from: "3.1.0"),
.package(url: "https://github.com/OperatorFoundation/Chord.git", from: "0.0.15"),
.package(url: "https://github.com/OperatorFoundation/Datable.git", from: "3.1.2"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.2"),
.package(url: "https://github.com/OperatorFoundation/SwiftHexTools.git", from: "1.2.2"),
.package(url: "https://github.com/OperatorFoundation/Transmission.git", from: "0.2.3"),
.package(url: "https://github.com/OperatorFoundation/Transmission.git", from: "1.0.4"),
.package(url: "https://github.com/OperatorFoundation/Transport.git", from: "2.3.5"),
.package(url: "https://github.com/apple/swift-crypto", from: "2.0.0")
],
Expand Down
2 changes: 1 addition & 1 deletion Sources/ShadowSwift/DarkStarConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ open class DarkStarConnection: Transport.Connection
let endpoint = NWEndpoint.hostPort(host: host, port: port)

#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
guard let newConnection = Transmission.Connection(host: "\(host)", port: Int(port.rawValue))
guard let newConnection = Transmission.TransmissionConnection(host: "\(host)", port: Int(port.rawValue))
else
{
logger.error("Failed to initialize a ShadowConnection because we could not create a Network Connection using host \(host) and port \(Int(port.rawValue)).")
Expand Down
2 changes: 1 addition & 1 deletion Sources/ShadowSwift/ShadowConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ open class ShadowConnection: Transport.Connection
logger: Logger)
{
#if (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
guard let newConnection = Transmission.Connection(host: "\(host)", port: Int(port.rawValue))
guard let newConnection = Transmission.TransmissionConnection(host: "\(host)", port: Int(port.rawValue))
else
{
logger.error("Failed to initialize a ShadowConnection because we could not create a Network Connection using host \(host) and port \(Int(port.rawValue)).")
Expand Down
2 changes: 1 addition & 1 deletion Sources/ShadowSwift/ShadowServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class ShadowServer

self.endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host.ipv4(IPv4Address(host)!), port: NWEndpoint.Port(integerLiteral: UInt16(port)))

guard let listener = Listener(port: port) else {return nil}
guard let listener = TransmissionListener(port: port, logger: nil) else {return nil}
self.listener = listener
}

Expand Down

0 comments on commit 1d24f7a

Please sign in to comment.