Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
35a6551c
Commit
35a6551c
authored
5 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
server account manager: update path for devices
Change-Id: I5626dccfe6363f55c44633fb42559aefa25a6356
parent
6c58fb51
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/jamidht/server_account_manager.cpp
+2
-1
2 additions, 1 deletion
src/jamidht/server_account_manager.cpp
with
2 additions
and
1 deletion
src/jamidht/server_account_manager.cpp
+
2
−
1
View file @
35a6551c
...
...
@@ -34,6 +34,7 @@ using Request = dht::http::Request;
static
const
std
::
string
PATH_AUTH
=
"/api/auth"
;
static
const
std
::
string
PATH_DEVICE
=
PATH_AUTH
+
"/device"
;
static
const
std
::
string
PATH_DEVICES
=
PATH_AUTH
+
"/devices"
;
constexpr
const
char
*
const
HTTPS_PROTO
{
"https"
};
...
...
@@ -211,7 +212,7 @@ ServerAccountManager::syncDevices()
{
if
(
not
creds_
)
return
;
const
std
::
string
url
=
managerHostname_
+
PATH_DEVICE
+
"?username="
+
creds_
->
username
;
const
std
::
string
url
=
managerHostname_
+
PATH_DEVICE
S
+
"?username="
+
creds_
->
username
;
JAMI_WARN
(
"[Auth] syncDevices with: %s to %s"
,
creds_
->
username
.
c_str
(),
url
.
c_str
());
auto
request
=
std
::
make_shared
<
Request
>
(
*
Manager
::
instance
().
ioContext
(),
url
,
logger_
);
auto
reqid
=
request
->
id
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment