summaryrefslogtreecommitdiff
path: root/network-addr
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-12-18 18:04:48 -0500
committerJoe Crayne <joe@jerkface.net>2020-01-01 23:27:11 -0500
commit4e8aa82d56129aae9e5ef22e5e0aa9287b993a92 (patch)
treeb4d0ded4cc254003df8c9109bc84087125ab52e9 /network-addr
parent0e62e21f78996422c644e2c559b4119a4463f391 (diff)
nullAddress4: all-zeroes ipv4 address.
Diffstat (limited to 'network-addr')
-rw-r--r--network-addr/src/Network/Address.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/network-addr/src/Network/Address.hs b/network-addr/src/Network/Address.hs
index 369ae864..2741b6dd 100644
--- a/network-addr/src/Network/Address.hs
+++ b/network-addr/src/Network/Address.hs
@@ -87,6 +87,7 @@ module Network.Address
87 , getBindAddress 87 , getBindAddress
88 , localhost4 88 , localhost4
89 , localhost6 89 , localhost6
90 , nullAddress4
90 , linesBy 91 , linesBy
91 ) where 92 ) where
92 93
@@ -1250,3 +1251,5 @@ localhost6 = SockAddrInet6 0 0 (0,0,0,1) 0 -- [::1]:0
1250localhost4 :: SockAddr 1251localhost4 :: SockAddr
1251localhost4 = SockAddrInet 0 16777343 -- 127.0.0.1:0 1252localhost4 = SockAddrInet 0 16777343 -- 127.0.0.1:0
1252 1253
1254nullAddress4 :: SockAddr
1255nullAddress4 = SockAddrInet 0 0 -- 0.0.0.0:0