summaryrefslogtreecommitdiff
path: root/src/Network/UPNP.hs
diff options
context:
space:
mode:
authorjim@bo <jim@bo>2018-06-20 22:40:37 -0400
committerjim@bo <jim@bo>2018-06-20 22:43:47 -0400
commit825962518c6ad00279fc23e8e1dec746980e483f (patch)
tree68c135bdffd879835c48cce3d397e8edf99b53f4 /src/Network/UPNP.hs
parent09aa079fbab069f177e08b5239bf684d312eb00a (diff)
More DPut stuff
* verbose/quiet without args shows report * verbose all - sets all tags verbose * quiet all - sets all tags quiet * XMisc defaults to verbose, everything else quiet * new XMan tag for ToxManager related stuff * s/hputStrLn stderr/dput XMisc/ in daemon code
Diffstat (limited to 'src/Network/UPNP.hs')
-rw-r--r--src/Network/UPNP.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/UPNP.hs b/src/Network/UPNP.hs
index ed6b4777..f053369f 100644
--- a/src/Network/UPNP.hs
+++ b/src/Network/UPNP.hs
@@ -6,6 +6,7 @@ import Network.Socket
6import System.Directory 6import System.Directory
7import System.IO 7import System.IO
8import System.Process as Process 8import System.Process as Process
9import DPut
9 10
10protocols :: SocketType -> [String] 11protocols :: SocketType -> [String]
11protocols Stream = ["tcp"] 12protocols Stream = ["tcp"]
@@ -35,5 +36,5 @@ requestPorts description binds = do
35 phandle <- spawnProcess upnpc $ "-e": description : "-r" : requests 36 phandle <- spawnProcess upnpc $ "-e": description : "-r" : requests
36 return $ Just phandle 37 return $ Just phandle
37 else do 38 else do
38 hPutStrLn stderr $ "Warning: unable to find miniupnpc client at "++upnpc++"." 39 dput XMisc $ "Warning: unable to find miniupnpc client at "++upnpc++"."
39 bail 40 bail