diff options
author | joe <joe@jerkface.net> | 2017-09-16 21:55:00 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-09-16 21:55:00 -0400 |
commit | 57aa0df02d52e7018d85a2b38689d3bc127252f3 (patch) | |
tree | 5ec0248f7b38d066bea600b1b62ddd1a94ebef0a /src | |
parent | d034fd6bee01a1bf1e9080d16f4fd230887a792b (diff) |
Added -e description to upnpc commandline.
Diffstat (limited to 'src')
-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++"." |