summaryrefslogtreecommitdiff
path: root/tests/Server.hs
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-10-01 06:10:41 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-10-01 06:10:41 +0400
commit258f21eb490ee3588dd3a1c7316ff41f7f355be7 (patch)
treec4eae6e12cfa8ebb7553a5b75654ae6371684d57 /tests/Server.hs
parent4a0653fc58869f4fc61230d3d11ef92626a8f52d (diff)
Allow passing ipv6 addresses
Diffstat (limited to 'tests/Server.hs')
-rw-r--r--tests/Server.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Server.hs b/tests/Server.hs
index 9e70b70b..b4b34891 100644
--- a/tests/Server.hs
+++ b/tests/Server.hs
@@ -3,11 +3,12 @@ module Main (main) where
3 3
4import Data.BEncode 4import Data.BEncode
5import Network.KRPC 5import Network.KRPC
6import Network.Socket
6import Shared 7import Shared
7 8
8 9
9main :: IO () 10main :: IO ()
10main = server 6000 11main = server (SockAddrInet 6000 0)
11 [ unitM ==> return 12 [ unitM ==> return
12 , echoM ==> return 13 , echoM ==> return
13 , echoBytes ==> return 14 , echoBytes ==> return