Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
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
firmware
FFS Gluon
Commits
540d0ff0
Commit
540d0ff0
authored
7 years ago
by
Cyrus
Committed by
Matthias Schiffer
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gluon-mesh-vpn-core: Fixed conditions for migration code (#1080)
VPN daemons were always disabled
parent
efec1fc3
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
package/gluon-mesh-vpn-core/luasrc/lib/gluon/upgrade/400-mesh-vpn
+2
-2
2 additions, 2 deletions
...gluon-mesh-vpn-core/luasrc/lib/gluon/upgrade/400-mesh-vpn
with
2 additions
and
2 deletions
package/gluon-mesh-vpn-core/luasrc/lib/gluon/upgrade/400-mesh-vpn
+
2
−
2
View file @
540d0ff0
...
@@ -62,10 +62,10 @@ uci:save('firewall')
...
@@ -62,10 +62,10 @@ uci:save('firewall')
-- VPN migration
-- VPN migration
local
has_fastd
=
fs
.
access
(
'/lib/gluon/mesh-vpn/fastd'
)
local
has_fastd
=
fs
.
access
(
'/lib/gluon/mesh-vpn/fastd'
)
local
fastd_enabled
=
has_fastd
and
uci
:
get_bool
(
"fastd"
,
"mesh_vpn"
,
"enabled"
)
local
fastd_enabled
=
uci
:
get_bool
(
"fastd"
,
"mesh_vpn"
,
"enabled"
)
local
has_tunneldigger
=
fs
.
access
(
'/lib/gluon/mesh-vpn/tunneldigger'
)
local
has_tunneldigger
=
fs
.
access
(
'/lib/gluon/mesh-vpn/tunneldigger'
)
local
tunneldigger_enabled
=
has_fastd
and
uci
:
get_bool
(
"tunneldigger"
,
"mesh_vpn"
,
"enabled"
)
local
tunneldigger_enabled
=
uci
:
get_bool
(
"tunneldigger"
,
"mesh_vpn"
,
"enabled"
)
local
enabled
=
fastd_enabled
or
tunneldigger_enabled
or
false
local
enabled
=
fastd_enabled
or
tunneldigger_enabled
or
false
...
...
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