From a030468cadb81b99a60968b8619848e55b46721c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 29 May 2014 13:49:45 -0400 Subject: fix warning message This should work even back in debian stable's warp --- Utility/WebApp.hs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Utility/WebApp.hs b/Utility/WebApp.hs index 6315e743b..1db7fcf25 100644 --- a/Utility/WebApp.hs +++ b/Utility/WebApp.hs @@ -95,11 +95,9 @@ fixSockAddr (SockAddrInet (PortNum port) addr) = SockAddrInet (PortNum $ swapEnd #endif fixSockAddr addr = addr +-- disable buggy sloworis attack prevention code webAppSettings :: Settings -webAppSettings = defaultSettings - -- disable buggy sloworis attack prevention code - { settingsTimeout = 30 * 60 - } +webAppSettings = setTimeout (30 * 60) defaultSettings {- Binds to a local socket, or if specified, to a socket on the specified - hostname or address. Selects any free port, unless the hostname ends with -- cgit v1.2.3