- -- |A port ID to listen to HTTP clients.
- , cnfServerPort :: !PortID
+ -- |Local IPv4 address to listen to both HTTP and HTTPS
+ -- clients. Set this to @('Just' "0.0.0.0")@ if you want to accept
+ -- any IPv4 connections. Set this to 'Nothing' to disable IPv4.
+ , cnfServerV4Addr ∷ !(Maybe HostName)
+
+ -- |Local IPv6 address to listen to both HTTP and HTTPS
+ -- clients. Set this to @('Just' "::")@ if you want to accept any
+ -- IPv6 connections. Set this to 'Nothing' to disable IPv6. Note
+ -- that there is currently no way to assign separate ports to IPv4
+ -- and IPv6 server sockets.
+ , cnfServerV6Addr ∷ !(Maybe HostName)