diff options
-rw-r--r-- | src/Network/UPNP.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/UPNP.hs b/src/Network/UPNP.hs index fff1ba5b..ed6b4777 100644 --- a/src/Network/UPNP.hs +++ b/src/Network/UPNP.hs | |||
@@ -17,7 +17,7 @@ upnpc = "/usr/bin/upnpc" | |||
17 | 17 | ||
18 | -- | Invokes the miniupnpc command line program to request ports from a UPNP | 18 | -- | Invokes the miniupnpc command line program to request ports from a UPNP |
19 | -- wifi router. Returns the process handle on success. | 19 | -- wifi router. Returns the process handle on success. |
20 | requestPorts :: String -- ^ Description stored on router, currently ignored. | 20 | requestPorts :: String -- ^ Description stored on router. |
21 | -> [(SocketType, SockAddr)] -- ^ Protocol-port pairs to request. | 21 | -> [(SocketType, SockAddr)] -- ^ Protocol-port pairs to request. |
22 | -> IO (Maybe ProcessHandle) | 22 | -> IO (Maybe ProcessHandle) |
23 | requestPorts description binds = do | 23 | requestPorts description binds = do |
@@ -32,7 +32,7 @@ requestPorts description binds = do | |||
32 | _ -> do | 32 | _ -> do |
33 | gotMiniUPNPC <- doesFileExist upnpc | 33 | gotMiniUPNPC <- doesFileExist upnpc |
34 | if gotMiniUPNPC then do | 34 | if gotMiniUPNPC then do |
35 | phandle <- spawnProcess upnpc $ "-r" : requests | 35 | phandle <- spawnProcess upnpc $ "-e": description : "-r" : requests |
36 | return $ Just phandle | 36 | return $ Just phandle |
37 | else do | 37 | else do |
38 | hPutStrLn stderr $ "Warning: unable to find miniupnpc client at "++upnpc++"." | 38 | hPutStrLn stderr $ "Warning: unable to find miniupnpc client at "++upnpc++"." |