Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
celllframe-node
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
cellframe
celllframe-node
Merge requests
!36
Feature 2557n2
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature 2557n2
feature-2557n2
into
master
Overview
0
Commits
4
Pipelines
0
Changes
7
Merged
alexander.lysikov
requested to merge
feature-2557n2
into
master
5 years ago
Overview
0
Commits
4
Pipelines
0
Changes
2
Expand
👍
0
👎
0
Merge request reports
Viewing commit
1ac4e74a
Prev
Next
Show latest version
2 files
+
14
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
1ac4e74a
added launch of vpn client
· 1ac4e74a
alexander.lysikov
authored
5 years ago
sources/main.c
+
12
−
5
Options
@@ -82,6 +82,7 @@
#include
"dap_chain_net_srv_datum.h"
#include
"dap_chain_net_srv_datum_pool.h"
#include
"dap_chain_net_srv_vpn.h"
#include
"dap_chain_net_vpn_client.h"
#include
"dap_chain_global_db.h"
#include
"dap_chain_mempool.h"
#include
"dap_chain_node_cli.h"
@@ -276,7 +277,6 @@ int main( int argc, const char **argv )
return
-
66
;
}
#if 0
if
(
dap_chain_net_srv_app_init
()
!=
0
){
log_it
(
L_CRITICAL
,
"Can't init dap chain network service applications module"
);
return
-
67
;
@@ -291,11 +291,18 @@ int main( int argc, const char **argv )
log_it
(
L_CRITICAL
,
"Can't init dap chain network service datum pool module"
);
return
-
69
;
}
if( dap_chain_net_srv_vpn_init(g_config) !=0){
log_it(L_ERROR,"Can't init dap chain network service vpn module");
//return -70;
// vpn server
if
(
dap_config_get_item_bool_default
(
g_config
,
"vpn"
,
"enabled"
,
false
))
{
if
(
dap_chain_net_srv_vpn_init
(
g_config
)
!=
0
)
{
log_it
(
L_ERROR
,
"Can't init dap chain network service vpn module"
);
return
-
70
;
}
}
// vpn client
if
(
dap_chain_net_vpn_client_init
(
g_config
)
!=
0
)
{
log_it
(
L_ERROR
,
"Can't init dap chain network service vpn client"
);
return
-
71
;
}
#endif
if
(
enc_http_init
()
!=
0
)
{
log_it
(
L_CRITICAL
,
"Can't init encryption http session storage module"
);
Loading