diff options
Diffstat (limited to 'Presence/XMPPServer.hs')
-rw-r--r-- | Presence/XMPPServer.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Presence/XMPPServer.hs b/Presence/XMPPServer.hs index ea1500d4..c9132d0f 100644 --- a/Presence/XMPPServer.hs +++ b/Presence/XMPPServer.hs | |||
@@ -92,8 +92,8 @@ import qualified Connection | |||
92 | 92 | ||
93 | peerport :: PortNumber | 93 | peerport :: PortNumber |
94 | peerport = 5269 | 94 | peerport = 5269 |
95 | clientport :: PortNumber | 95 | -- clientport :: PortNumber |
96 | clientport = 5222 | 96 | -- clientport = 5222 |
97 | 97 | ||
98 | my_uuid :: Text | 98 | my_uuid :: Text |
99 | my_uuid = "154ae29f-98f2-4af4-826d-a40c8a188574" | 99 | my_uuid = "154ae29f-98f2-4af4-826d-a40c8a188574" |
@@ -213,6 +213,7 @@ data XMPPServerParameters = | |||
213 | , -- | Called when a remote peer informs us of our subscription status. | 213 | , -- | Called when a remote peer informs us of our subscription status. |
214 | xmppPeerInformSubscription :: IO () -> ConnectionKey -> Stanza -> IO () | 214 | xmppPeerInformSubscription :: IO () -> ConnectionKey -> Stanza -> IO () |
215 | , xmppVerbosity :: IO Int | 215 | , xmppVerbosity :: IO Int |
216 | , xmppClientPort :: PortNumber -- 5222 | ||
216 | } | 217 | } |
217 | 218 | ||
218 | 219 | ||
@@ -1841,7 +1842,7 @@ xmppServer xmpp = do | |||
1841 | hPutStrLn stderr $ "Starting peer listen" | 1842 | hPutStrLn stderr $ "Starting peer listen" |
1842 | control sv (Listen peerport peer_params) | 1843 | control sv (Listen peerport peer_params) |
1843 | hPutStrLn stderr $ "Starting client listen" | 1844 | hPutStrLn stderr $ "Starting client listen" |
1844 | control sv (Listen clientport client_params) | 1845 | control sv (Listen (xmppClientPort xmpp) client_params) |
1845 | return XMPPServer { _xmpp_sv = sv, _xmpp_peer_params = peer_params } | 1846 | return XMPPServer { _xmpp_sv = sv, _xmpp_peer_params = peer_params } |
1846 | 1847 | ||
1847 | #if MIN_VERSION_stm(2,4,0) | 1848 | #if MIN_VERSION_stm(2,4,0) |