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
Commits
24aa2b41
Commit
24aa2b41
authored
5 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://gitlab.demlabs.net/cellframe/cellframe-node
parents
2567a5ef
cd2776a5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dist/share/configs/cellframe-node.cfg.tpl
+6
-0
6 additions, 0 deletions
dist/share/configs/cellframe-node.cfg.tpl
sources/main.c
+5
-8
5 additions, 8 deletions
sources/main.c
with
11 additions
and
8 deletions
dist/share/configs/cellframe-node.cfg.tpl
+
6
−
0
View file @
24aa2b41
...
...
@@ -43,6 +43,12 @@ access_groups=expats,services,admins
network_address=10.11.12.0
network_mask=255.255.255.0
# old VPN server
[vpn_old]
enabled=true
network_address=10.11.11.0
network_mask=255.255.255.0
# Console interface server
[conserver]
enabled=true
...
...
This diff is collapsed.
Click to expand it.
sources/main.c
+
5
−
8
View file @
24aa2b41
...
...
@@ -300,15 +300,14 @@ int main( int argc, const char **argv )
log_it
(
L_CRITICAL
,
"Can't init dap chain network service datum pool module"
);
return
-
69
;
}
// vpn server
#ifndef _WIN32
/
*
/
/ 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"
);
...
...
@@ -423,11 +422,9 @@ int main( int argc, const char **argv )
// VPN channel
if
(
dap_config_get_item_bool_default
(
g_config
,
"vpn"
,
"enabled"
,
false
)){
dap_stream_ch_vpn_init
(
dap_config_get_item_str_default
(
g_config
,
"vpn"
,
"network_address"
,
NULL
),
dap_config_get_item_str_default
(
g_config
,
"vpn"
,
"network_mask"
,
NULL
));
if
(
dap_config_get_item_bool_default
(
g_config
,
"vpn_old"
,
"enabled"
,
false
)){
dap_stream_ch_vpn_init
(
dap_config_get_item_str_default
(
g_config
,
"vpn_old"
,
"network_address"
,
NULL
),
dap_config_get_item_str_default
(
g_config
,
"vpn_old"
,
"network_mask"
,
NULL
));
}
...
...
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