Skip to content

Commit

Permalink
Update AsyncDarkstarListener.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
consuelita committed Dec 13, 2023
1 parent 0dcf560 commit 9676d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ShadowSwift/Async/AsyncDarkstarListener.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ public class AsyncDarkstarListener: AsyncListener
let logger: Logger
let networkListener: AsyncListener

public init(config: ShadowConfig.ShadowServerConfig, logger: Logger) throws
public init(config: ShadowConfig.ShadowServerConfig, logger: Logger, verbose: Bool = false) throws
{
self.host = config.serverIP
self.port = Int(config.serverPort)
self.config = config
self.logger = logger
self.networkListener = try AsyncTcpSocketListener(host: self.host, port: self.port, self.logger)
self.networkListener = try AsyncTcpSocketListener(host: self.host, port: self.port, self.logger, verbose: verbose)
}

public func accept() async throws -> AsyncConnection
Expand Down

0 comments on commit 9676d05

Please sign in to comment.