Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask-vpn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
leap
bitmask-vpn
Merge requests
!18
compile for gtk_3_18 or older
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
compile for gtk_3_18 or older
meskio/bitmask-vpn:bug/45_gtk_3_20
into
master
Overview
0
Commits
2
Pipelines
1
Changes
3
Merged
meskio
requested to merge
meskio/bitmask-vpn:bug/45_gtk_3_20
into
master
6 years ago
Overview
0
Commits
2
Pipelines
1
Changes
3
Expand
Resolves:
#45 (closed)
#44 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
5687154a
2 commits,
6 years ago
3 files
+
23
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
bitmask/vpn.go
+
12
−
1
Options
@@ -17,6 +17,7 @@ package bitmask
import
(
"errors"
"log"
)
// StartVPN for provider
@@ -52,7 +53,17 @@ func (b *Bitmask) VPNCheck() (helpers bool, priviledge bool, err error) {
if
err
!=
nil
{
return
false
,
false
,
err
}
return
res
[
"installed"
]
.
(
bool
),
res
[
"privcheck"
]
.
(
bool
),
nil
installed
,
ok
:=
res
[
"installed"
]
.
(
bool
)
if
!
ok
{
log
.
Printf
(
"Unexpected value for installed on 'vpn check': %v"
,
res
)
return
false
,
false
,
errors
.
New
(
"Invalid response format"
)
}
privcheck
,
ok
:=
res
[
"privcheck"
]
.
(
bool
)
if
!
ok
{
log
.
Printf
(
"Unexpected value for privcheck on 'vpn check': %v"
,
res
)
return
installed
,
false
,
errors
.
New
(
"Invalid response format"
)
}
return
installed
,
privcheck
,
nil
}
// ListGateways return the names of the gateways
Loading