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
9ad429d7
Verified
Commit
9ad429d7
authored
6 years ago
by
meskio
Browse files
Options
Downloads
Patches
Plain Diff
[pkg] windows doesn't have curve
Let's have our own hasCurve() func to don't use curve if is windows.
parent
3681fd33
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!14
[feat] configure the zmq bitmask endpoint per platform
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bitmask/darwin.go
+9
-1
9 additions, 1 deletion
bitmask/darwin.go
bitmask/events.go
+1
-1
1 addition, 1 deletion
bitmask/events.go
bitmask/unix.go
+9
-1
9 additions, 1 deletion
bitmask/unix.go
bitmask/windows.go
+4
-0
4 additions, 0 deletions
bitmask/windows.go
with
23 additions
and
3 deletions
bitmask/darwin.go
+
9
−
1
View file @
9ad429d7
...
...
@@ -16,8 +16,16 @@
package
bitmask
import
"os"
import
(
"os"
"github.com/pebbe/zmq4"
)
const
coreEndpoint
=
"ipc:///var/tmp/bitmask.core.sock"
var
ConfigPath
=
os
.
Getenv
(
"HOME"
)
+
"/Library/Preferences/leap"
func
hasCurve
()
bool
{
return
zmq4
.
HasCurve
()
}
This diff is collapsed.
Click to expand it.
bitmask/events.go
+
1
−
1
View file @
9ad429d7
...
...
@@ -35,7 +35,7 @@ func initEvents() (*zmq4.Socket, error) {
return
nil
,
err
}
if
zmq4
.
H
asCurve
()
{
if
h
asCurve
()
{
err
=
initCurve
(
socket
)
if
err
!=
nil
{
return
nil
,
err
...
...
This diff is collapsed.
Click to expand it.
bitmask/unix.go
+
9
−
1
View file @
9ad429d7
...
...
@@ -16,8 +16,16 @@
package
bitmask
import
"os"
import
(
"os"
"github.com/pebbe/zmq4"
)
const
coreEndpoint
=
"ipc:///var/tmp/bitmask.core.sock"
var
ConfigPath
=
os
.
Getenv
(
"HOME"
)
+
"/.config/leap"
func
hasCurve
()
bool
{
return
zmq4
.
HasCurve
()
}
This diff is collapsed.
Click to expand it.
bitmask/windows.go
+
4
−
0
View file @
9ad429d7
...
...
@@ -21,3 +21,7 @@ import "os"
const
coreEndpoint
=
"tcp://127.0.0.1:5001"
var
ConfigPath
=
os
.
Getenv
(
"APPDATA"
)
+
"
\\
leap"
func
hasCurve
()
bool
{
return
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