From fd81dd912b1631dc79d27275c98f0d2930bd93a2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 8 Oct 2020 10:35:16 -0400 Subject: [PATCH] change from deprecated and removed aNY_PORT to defaultPort (Both are just 0 internally.) --- Utility/WebApp.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utility/WebApp.hs b/Utility/WebApp.hs index d2dbd845a9..62c6e2fd68 100644 --- a/Utility/WebApp.hs +++ b/Utility/WebApp.hs @@ -93,7 +93,7 @@ getSocket h = do addr <- inet_addr "127.0.0.1" sock <- socket AF_INET Stream defaultProtocol preparesocket sock - bind sock (SockAddrInet aNY_PORT addr) + bind sock (SockAddrInet defaultPort addr) use sock where #else