Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
jami-daemon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
130
Issues
130
List
Boards
Labels
Service Desk
Milestones
Iterations
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
savoirfairelinux
jami-daemon
Commits
dcff71a5
Commit
dcff71a5
authored
Jun 14, 2019
by
Adrien Béraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jamiaccount: disable peer discovery by default
Change-Id: I533b47960993953a9f0e7ab99aaef601d9085434
parent
f9b9b116
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
src/jamidht/jamiaccount.cpp
src/jamidht/jamiaccount.cpp
+6
-5
src/jamidht/jamiaccount.h
src/jamidht/jamiaccount.h
+1
-1
No files found.
src/jamidht/jamiaccount.cpp
View file @
dcff71a5
...
...
@@ -2168,19 +2168,20 @@ JamiAccount::doRegister_()
config
.
peer_discovery
=
dhtPeerDiscovery_
;
config
.
peer_publish
=
dhtPeerDiscovery_
;
if
(
not
config
.
proxy_server
.
empty
())
JAMI_
WARN
(
"[Account %s] using proxy server %s"
,
getAccountID
().
c_str
(),
config
.
proxy_server
.
c_str
());
JAMI_
INFO
(
"[Account %s] using proxy server %s"
,
getAccountID
().
c_str
(),
config
.
proxy_server
.
c_str
());
if
(
not
deviceKey_
.
empty
())
{
JAMI_
WARN
(
"[Account %s] using push notifications"
,
getAccountID
().
c_str
());
JAMI_
INFO
(
"[Account %s] using push notifications"
,
getAccountID
().
c_str
());
dht_
.
setPushNotificationToken
(
deviceKey_
);
}
//check if dht peer service is enabled
if
(
accountPeerDiscovery_
||
accountPublish_
)
{
if
(
accountPeerDiscovery_
or
accountPublish_
)
{
peerDiscovery_
=
std
::
make_shared
<
dht
::
PeerDiscovery
>
();
JAMI_INFO
(
"Start Jami account discovering....."
);
if
(
accountPeerDiscovery_
)
if
(
accountPeerDiscovery_
)
{
JAMI_INFO
(
"[Account %s] starting Jami account discovery..."
,
getAccountID
().
c_str
());
startAccountDiscovery
();
}
if
(
accountPublish_
)
startAccountPublish
();
}
...
...
src/jamidht/jamiaccount.h
View file @
dcff71a5
...
...
@@ -701,7 +701,7 @@ class JamiAccount : public SIPAccountBase {
std
::
shared_ptr
<
dht
::
PeerDiscovery
>
peerDiscovery_
;
std
::
map
<
dht
::
InfoHash
,
DiscoveredPeer
>
discoveredPeers_
;
std
::
map
<
std
::
string
,
std
::
string
>
discoveredPeerMap_
;
bool
accountPeerDiscovery_
{
tru
e
};
bool
accountPeerDiscovery_
{
fals
e
};
bool
accountPublish_
{
false
};
std
::
shared_ptr
<
RepeatedTask
>
eventHandler
{};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment