diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-10-01 06:10:41 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-10-01 06:10:41 +0400 |
commit | 258f21eb490ee3588dd3a1c7316ff41f7f355be7 (patch) | |
tree | c4eae6e12cfa8ebb7553a5b75654ae6371684d57 /tests/Server.hs | |
parent | 4a0653fc58869f4fc61230d3d11ef92626a8f52d (diff) |
Allow passing ipv6 addresses
Diffstat (limited to 'tests/Server.hs')
-rw-r--r-- | tests/Server.hs | 3 |
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 | ||
4 | import Data.BEncode | 4 | import Data.BEncode |
5 | import Network.KRPC | 5 | import Network.KRPC |
6 | import Network.Socket | ||
6 | import Shared | 7 | import Shared |
7 | 8 | ||
8 | 9 | ||
9 | main :: IO () | 10 | main :: IO () |
10 | main = server 6000 | 11 | main = server (SockAddrInet 6000 0) |
11 | [ unitM ==> return | 12 | [ unitM ==> return |
12 | , echoM ==> return | 13 | , echoM ==> return |
13 | , echoBytes ==> return | 14 | , echoBytes ==> return |