diff options
author | jim@bo <jim@bo> | 2018-06-20 22:40:37 -0400 |
---|---|---|
committer | jim@bo <jim@bo> | 2018-06-20 22:43:47 -0400 |
commit | 825962518c6ad00279fc23e8e1dec746980e483f (patch) | |
tree | 68c135bdffd879835c48cce3d397e8edf99b53f4 /src/Network/UPNP.hs | |
parent | 09aa079fbab069f177e08b5239bf684d312eb00a (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.hs | 3 |
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 | |||
6 | import System.Directory | 6 | import System.Directory |
7 | import System.IO | 7 | import System.IO |
8 | import System.Process as Process | 8 | import System.Process as Process |
9 | import DPut | ||
9 | 10 | ||
10 | protocols :: SocketType -> [String] | 11 | protocols :: SocketType -> [String] |
11 | protocols Stream = ["tcp"] | 12 | protocols 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 |