Initializer
init(bindHost:bindPort:targetHost:targetPort:)
Create a local forwarding configuration.
init(bindHost: String = "localhost", bindPort: Int, targetHost: String, targetPort: Int)
Parameters
bindHost-
Local host name or address to bind.
bindPort-
Local TCP port to bind.
targetHost-
Remote host that should receive forwarded traffic.
targetPort-
Remote TCP port that should receive forwarded traffic.
Discussion
The initialiser defaults the bind host to localhost, matching the conventional SSH behaviour for local-only forwards.