Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AUSF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AUSF
Commits
e1d1256e
Commit
e1d1256e
authored
Feb 03, 2021
by
yangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update main.cpp
parent
8779c0bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/ausf_app/main.cpp
src/ausf_app/main.cpp
+3
-3
No files found.
src/ausf_app/main.cpp
View file @
e1d1256e
...
@@ -87,8 +87,8 @@ int main(int argc, char **argv) {
...
@@ -87,8 +87,8 @@ int main(int argc, char **argv) {
ausf_cfg
.
load
(
Options
::
getlibconfigConfig
());
ausf_cfg
.
load
(
Options
::
getlibconfigConfig
());
ausf_cfg
.
display
();
ausf_cfg
.
display
();
cout
<<
endl
<<
ausf_cfg
.
sbi
.
port
<<
endl
;
//Pistache::Address addr(Pistache::Ipv4::any(), Pistache::Port(ausf_cfg.sbi.port))
;
Pistache
::
Address
addr
(
Pistache
::
Ipv4
::
any
(),
Pistache
::
Port
(
ausf_cfg
.
sbi
.
port
));
Pistache
::
Address
addr
(
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
ausf_cfg
.
sbi
.
addr4
))),
Pistache
::
Port
(
ausf_cfg
.
sbi
.
port
));
httpEndpoint
=
new
Pistache
::
Http
::
Endpoint
((
addr
));
httpEndpoint
=
new
Pistache
::
Http
::
Endpoint
((
addr
));
auto
router
=
std
::
make_shared
<
Pistache
::
Rest
::
Router
>
();
auto
router
=
std
::
make_shared
<
Pistache
::
Rest
::
Router
>
();
...
...
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