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
26bb6ac1
Commit
26bb6ac1
authored
4 months ago
by
jkito
Committed by
jkito
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
remove use of deprecated ioutil module
parent
00d4e0a7
No related branches found
No related tags found
1 merge request
!273
fix crash during start when helper not installed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/vpn/bitmask.go
+2
-3
2 additions, 3 deletions
pkg/vpn/bitmask.go
with
2 additions
and
3 deletions
pkg/vpn/bitmask.go
+
2
−
3
View file @
26bb6ac1
...
...
@@ -17,7 +17,6 @@ package vpn
import
(
"encoding/json"
"io/ioutil"
"os"
"time"
...
...
@@ -58,7 +57,7 @@ type Bitmask struct {
// Init the connection to bitmask
func
Init
()
(
*
Bitmask
,
error
)
{
tempdir
,
err
:=
ioutil
.
Temp
Dir
(
""
,
"leap-"
)
tempdir
,
err
:=
os
.
Mkdir
Temp
(
""
,
"leap-"
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -110,7 +109,7 @@ func Init() (*Bitmask, error) {
provider
:
""
,
}
err
=
ioutil
.
WriteFile
(
b
.
getTempCaCertPath
(),
config
.
CaCert
,
0600
)
err
=
os
.
WriteFile
(
b
.
getTempCaCertPath
(),
config
.
CaCert
,
0600
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
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