obey the port selection with stunnel client.

This commit is contained in:
Vincent Hanquez 2010-09-18 11:01:10 +01:00
parent abf299db36
commit 03790957d8

View file

@ -58,7 +58,7 @@ mainClient host port = do
premasterRandom <- (ClientKeyData . B.unpack) `fmap` AESRand.randBytes 46
seqInit <- fmap (conv . B.unpack) $ AESRand.randBytes 4
handle <- connectTo host (PortNumber 6061)
handle <- connectTo host (PortNumber $ fromIntegral port)
hSetBuffering handle NoBuffering
let clientstate = C.TLSClientParams