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
Commits
39edea83
Commit
39edea83
authored
9 months ago
by
Pea Nut
Committed by
jkito
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Improve error handlig and logging when writing CA file to disk
parent
0f43c044
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!198
v5 implementation with a single Bitmask struct
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/vpn/bitmask.go
+9
-1
9 additions, 1 deletion
pkg/vpn/bitmask.go
with
9 additions
and
1 deletion
pkg/vpn/bitmask.go
+
9
−
1
View file @
39edea83
...
...
@@ -109,6 +109,15 @@ func Init() (*Bitmask, error) {
provider
:
""
,
}
err
=
ioutil
.
WriteFile
(
b
.
getTempCaCertPath
(),
config
.
CaCert
,
0600
)
if
err
!=
nil
{
return
nil
,
err
}
log
.
Debug
()
.
Str
(
"caCertPath"
,
b
.
getTempCaCertPath
())
.
Msg
(
"Sucessfully wrote OpenVPN CA certificate (hardcoded in the binary, not coming from API)"
)
// FIXME multiprovider: need to pass provider name early on
// XXX we want to block on these, but they can timeout if we're blocked.
b
.
checkForMOTD
()
...
...
@@ -128,7 +137,6 @@ func Init() (*Bitmask, error) {
}
*/
err
=
ioutil
.
WriteFile
(
b
.
getTempCaCertPath
(),
config
.
CaCert
,
0600
)
go
b
.
fetchGateways
()
go
b
.
openvpnManagement
()
...
...
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