diff options
author | Joe Crayne <joe@jerkface.net> | 2019-12-18 18:04:48 -0500 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2020-01-01 23:27:11 -0500 |
commit | 4e8aa82d56129aae9e5ef22e5e0aa9287b993a92 (patch) | |
tree | b4d0ded4cc254003df8c9109bc84087125ab52e9 /network-addr | |
parent | 0e62e21f78996422c644e2c559b4119a4463f391 (diff) |
nullAddress4: all-zeroes ipv4 address.
Diffstat (limited to 'network-addr')
-rw-r--r-- | network-addr/src/Network/Address.hs | 3 |
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 | |||
1250 | localhost4 :: SockAddr | 1251 | localhost4 :: SockAddr |
1251 | localhost4 = SockAddrInet 0 16777343 -- 127.0.0.1:0 | 1252 | localhost4 = SockAddrInet 0 16777343 -- 127.0.0.1:0 |
1252 | 1253 | ||
1254 | nullAddress4 :: SockAddr | ||
1255 | nullAddress4 = SockAddrInet 0 0 -- 0.0.0.0:0 | ||