From 450eecaa76b3d67741df0b1da8df4403d4e508be Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 29 May 2014 13:49:45 -0400 Subject: [PATCH] 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 6315e743bc..1db7fcf25b 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